protected class PortTypeResolvers {
private final Map<QName, NamespaceEntityResolver> resolversByKind = new HashMap<QName, NamespaceEntityResolver>();
public NamespaceEntityResolver get( QName portTypeName ) {
NamespaceEntityResolver resolver = resolversByKind.get(portTypeName);
if (resolver == null) {
resolver = new NamespaceEntityResolver();
resolversByKind.put(portTypeName, resolver);
}
return resolver;
}