if (t.getTarget() instanceof Element) {
Element te = (Element) t.getTarget();
elemName = te.getElementName();
}
Collection refs = propInfo.ref();
if ((refs != null) && (!refs.isEmpty()) && (elemName != null)) {
ClassInfoImpl cImpl = (ClassInfoImpl)refs.iterator().next();
if ((cImpl != null) && (cImpl.getElementName() != null)) {
e.ref(new QName(cImpl.getElementName().getNamespaceURI(), tn.getLocalPart()));
} else {