Set<ResourceProperty> properties = new HashSet<ResourceProperty>();
if (propertiesResource != null) {
for (Resource property : propertiesResource.getChildren()) {
String fieldName = property.getName();
ValueMap propertyValueMap = property.adaptTo(ValueMap.class);
Type type = Type.getType(propertyValueMap.get(Constants.PROPERTY_TYPE, String.class));
Boolean propertyMultiple = PropertiesUtil.toBoolean(propertyValueMap.get(Constants.PROPERTY_MULTIPLE), false);
Resource validators = property.getChild(Constants.VALIDATORS);
Map<Validator, Map<String, String>> validatorsMap = new HashMap<Validator, Map<String, String>>();
if (validators != null) {
Iterator<Resource> validatorsIterator = validators.listChildren();