className = current.getClass().getSimpleName();
if (current instanceof GenericEntity) {
id = ((GenericEntity)current).getId();
}
if (aClass.isAnnotationPresent(DefineQueryEntity.class)) {
DefineQueryEntity annotation = (DefineQueryEntity) aClass.getAnnotation(DefineQueryEntity.class);
nameEntity = annotation.title();
} else {
nameEntity = aClass.getSimpleName();
}
}