try {
if (portletJavaClassName.equals(AllPropertiesPortlet.class.getName())) {
return new AllPropertiesPortlet(project);
}
else if (portletJavaClassName.equals(AnnotationsPortlet.class.getName())) {
return new AnnotationsPortlet(project);
}
else if (portletJavaClassName.equals(ClassTreePortlet.class.getName())) {
return new ClassTreePortlet(project);
}
else if (portletJavaClassName.equals(ImportsTreePortlet.class.getName())) {