AWResourceManager resourceManager = resourceManager();
componentClass = resourceManager.classForName(componentName);
if (componentClass == null) {
if (Character.isUpperCase(componentName.charAt(0))) {
String templateName = StringUtil.strcat(componentName, AWComponent.ComponentTemplateFileExtension);
AWResource resource = resourceManager.packageResourceNamed(templateName);
if (resource != null) {
componentClass = readClassFromTemplate(resource);
if (componentClass == null) {
componentClass = DefaultComponentClass;
}