if (referencedElement.getSchemaTypeName()!=null){
String className = findClassName(referencedElement.getSchemaTypeName(), isArray(xsElt));
//if this element is referenced, there's no QName for this element
this.processedElementRefMap.put(referenceEltQName, className);
referencedElement.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY,
className);
}else{
//this referenced element has an anon type and that anon type has been already
//processed. But in this case we need it to be a seperate class since this
//complextype has to be added as an attribute in a class.