fieldDetails.decorateAnnotationsList(annotations);
fieldDetails.setAnnotations(annotations);
String initializer = null;
if (fieldDetails instanceof CollectionField) {
final CollectionField collectionField = (CollectionField) fieldDetails;
initializer = "new " + collectionField.getInitializer() + "()";
}
else if (fieldDetails instanceof DateField
&& fieldDetails.getFieldName().getSymbolName()
.equals("created")) {
initializer = "new Date()";