for (Field field : cl.getDeclaredFields()) {
DataField dataField = field.getAnnotation(DataField.class);
if (dataField != null) {
if (LOG.isDebugEnabled()) {
LOG.debug("Position defined in the class : " + cl.getName() + ", position : "
+ dataField.pos() + ", Field : " + dataField.toString());
}
if (dataField.required()) {
++numberMandatoryFields;
} else {