if ("org.apache.woden.internal.DOMWSDLFactory".equals(factory)) {
Constructor cons = Class.forName(
"org.apache.woden.internal.resolver.DOMSchemaResolverAdapter").getConstructor(
new Class[] { URIResolver.class, XMLElement.class });
fResolver = (SchemaResolverAdapter) cons.newInstance(new Object[] {
new SimpleURIResolver(), null });
} else if ("org.apache.woden.internal.OMWSDLFactory".equals(factory)) {
Constructor cons = Class.forName(
"org.apache.woden.internal.resolver.OMSchemaResolverAdapter").getConstructor(
new Class[] { URIResolver.class, XMLElement.class });
fResolver = (SchemaResolverAdapter) cons.newInstance(new Object[] {
new SimpleURIResolver(), null });
}
}