WsdlImportInfo imp = new WsdlImportInfo();
imp.setLocation(def.getDocumentBaseURI());
imp.setNamespace(def.getTargetNamespace());
wsdlImports.add(imp);
}
WsdlPartnerLinkSerializer plinkSerializer = new WsdlPartnerLinkSerializer();
plinkSerializer.serializePartnerLinkTypes(process.getPartnerLinks(),
process.getTargetNamespace() + "Artifacts",
process.getName() + "Artifacts",
outputDirectory + process.getName() + "Artifacts.wsdl",
wsdlImports,wsdlNsPrefixMap,outputToConsole);
org.eclipse.bpel.model.Import bpelImport = BPELFactory.eINSTANCE.createImport();