public static final String[] OLD_COMPONENT_TERMINATIONS = { "Controller", "Logic", "Command", "Action",
"Component", "Manager" };
public static String getComponentName(Class<?> type) {
Component component = type.getAnnotation(Component.class);
String componentName = component.value();
if (componentName.equals("")) {
return getComponentNameForTypeWithoutAnnotationValue(type);
}
return componentName;
}