Switched to using a LinkedHashMap for the features attributes to maintain order matching the schema.xsd