public static String createAwsdl4ServiceMap(String serviceMapAsStr) throws GfacException {
try {
ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapAsStr)
.getServiceMap();
// FIXME: Already validated when you create service map.
SchemaValidator validator = new SchemaValidator(serviceMap);
validator.validate();
QName serviceQname = new QName(serviceMap.getService().getServiceName()
.getTargetNamespace(), serviceMap.getService().getServiceName().getStringValue());
WSDLGenerator wsdlGenerator = new WSDLGenerator();
Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null, serviceMap,
true);