plinkTypePrefix = def.getPrefix(qn.getNamespaceURI()) + ":";
PartnerLinkType plinkType = (PartnerLinkType)extElement;
writer.println("<" + plinkTypePrefix + qn.getLocalPart() + " name=\"" + plinkType.getName() + "\">");
Iterator it = plinkType.getRole().iterator();
while (it.hasNext()){
Role role = (Role)it.next();
PortType pt = (PortType)role.getPortType();
String ptPrefix = "";
if (def.getPrefix(pt.getQName().getNamespaceURI()) != null)
ptPrefix = def.getPrefix(pt.getQName().getNamespaceURI()) + ":";
writer.println("\t<" + plinkTypePrefix + role.getElementType().getLocalPart() + " name=\"" + role.getName() + "\" portType=\"" + ptPrefix + pt.getQName().getLocalPart() + "\"/>");
}
writer.println("</" + plinkTypePrefix + qn.getLocalPart() + ">");
}