List<?> result;
Resource parentResource = resource.getChild(propertyName);
if (parentResource == null) {
result = Collections.EMPTY_LIST;
} else {
Children childrenAnnotation = field.getAnnotation(Children.class);
Class<?> modelClass = childrenAnnotation.value();
result = modelProvider.get().getChildModels(modelClass, parentResource);
}
return result;
}