map.put("orderClause", orderClause);
map.put("resourcePath", resourcePath);
Resource<URL> templateResource = resourceFactory.create(getClass().getResource("Endpoint.jv"));
TemplateProcessor processor = processorFactory.fromTemplate(new FreemarkerTemplate(templateResource));
String output = processor.process(map);
JavaClass resource = JavaParser.parse(JavaClass.class, output);
resource.addImport(entity.getQualifiedName());
resource.setPackage(context.getTargetPackageName());
return Arrays.asList(resource);
}