}
for (final Class<CustomServiceTask> currentClass : classHierarchy) {
for (final Field field : currentClass.getDeclaredFields()) {
if (field.isAnnotationPresent(Property.class)) {
fieldInfoObjects.add(new FieldInfo(field));
}
}
}
// Sort the list so the fields are in the correct order