final TypeElement element = env.getElementUtils().getTypeElement(Entity.class.getName());
if (annotations.contains(element)) {
try {
Configuration cfg = new Configuration();
cfg.setObjectWrapper(new DefaultObjectWrapper());
cfg.setTemplateLoader(new ClassTemplateLoader(getClass(), "/templates"));
Template temp = cfg.getTemplate("criteria.ftl");
Set<TypeElement> elements = ElementFilter.typesIn(roundEnv.getElementsAnnotatedWith(Entity.class));
for (TypeElement typeElement : elements) {
String name = typeElement.getSimpleName().toString();
String pkg = getPackageName(typeElement);