{
JavaClassSource entity = context.getEntity();
Project project = context.getProject();
if (!entity.hasAnnotation(XmlRootElement.class))
{
entity.addAnnotation(XmlRootElement.class);
project.getFacet(JavaSourceFacet.class).saveJavaSource(entity);
}
String contentType = ResourceGeneratorUtil.getContentType(context.getContentType());
String idType = ResourceGeneratorUtil.resolveIdType(entity);
String persistenceUnitName = context.getPersistenceUnitName();