protected Field mapFieldType(Class entityClass) {
Field field = null;
if (entityClass.equals(String.class)) {
field = new StringField();
} else if (entityClass.equals(Integer.class) || entityClass.equals(int.class)) {
field = new IntegerField();
} else if (entityClass.equals(Long.class) || entityClass.equals(long.class) ) {
field = new LongField();
} else if (entityClass.equals(Float.class) || entityClass.equals(float.class)) {