}
private IType findDisplayGroupClass(String className)
throws JavaModelException {
IType classType = null;
TypeCache typeCache = WodParserCache.getTypeCache();
IJavaProject javaProject = JavaCore.create(_file.getProject());
String typeName = typeCache.getApiCache(javaProject).getElementTypeNamed(className);
if (typeName != null) {
classType = javaProject.findType(typeName);
} else {
TypeNameCollector typeNameCollector = new TypeNameCollector("com.webobjects.appserver.WODisplayGroup", javaProject, true);
BindingReflectionUtils.findMatchingElementClassNames(className, SearchPattern.R_EXACT_MATCH, typeNameCollector, null);
if (!typeNameCollector.isEmpty()) {
String matchingElementClassName = typeNameCollector.firstTypeName();
classType = typeNameCollector.getTypeForClassName(matchingElementClassName);
}
if (classType != null) {
typeCache.getApiCache(javaProject).setElementTypeForName(classType, className);
}
}
return classType;
}