} else if (Integer.TYPE.equals(type) || Integer.class.equals(type) || Long.TYPE.equals(type)
|| Long.class.equals(type) || Double.TYPE.equals(type) || Double.class.equals(type)) {
result = new AjaxNumberFieldPanel(id, fieldName, model, ClassUtils.resolvePrimitiveIfNecessary(type));
} else if (Date.class.equals(type)) {
result = new DateTimeFieldPanel(id, fieldName, model, SyncopeConstants.DEFAULT_DATE_PATTERN);
} else if (type.isEnum()) {
result = new AjaxDropDownChoicePanel(id, fieldName, model).setChoices(Arrays
.asList(type.getEnumConstants()));
}