public JavaResource newConverter(Project project, String converterName, String converterPackage)
throws FileNotFoundException
{
final JavaSourceFacet java = project.getFacet(JavaSourceFacet.class);
JavaClass javaClass = createConverter(converterName, converterPackage);
return java.saveJavaSource(javaClass);
}
/**
* Creates a new {@link JavaResource} in the specified target. If a project is available, use
* {@link FacesOperations#newConverter(Project, String, String)}