public static ByteOrder getByteOrder(final String byteOrderName)
    {
        if ("bigEndian".equals(byteOrderName))
        {
            return ByteOrder.BIG_ENDIAN;
        }

        return ByteOrder.LITTLE_ENDIAN;
    }
Helper function to convert a schema byteOrderName into a {@link ByteOrder}.

@param byteOrderName specified as a FIX SBE string.
@return ByteOrder representation.
sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/XmlSchemaParser.java