throw new RuntimeException("Type already exists [" + resource.getFullyQualifiedName()
+ "] Re-run with '--overwrite' to continue.");
}
JavaSourceFacet java = project.getFacet(JavaSourceFacet.class);
JavaClass javaClass = JavaParser.create(JavaClass.class);
javaClass.setName(java.calculateName(resource));
javaClass.setPackage(java.calculatePackage(resource));
if (BeanScope.CUSTOM == scope)
{
String annoType = prompt.promptCommon("Enter the qualified custom scope type:", PromptType.JAVA_CLASS);