public Object convert(Object src, java.util.Hashtable keyedContext) throws Exception{
ProcessDefinition srcProc = (ProcessDefinition)src;
ProcessDefinition dstProc = new ProcessDefinition();
Role role = (Role)keyedContext.get("role");
ServiceDefinition mySvcDef = new ServiceDefinition();
//review: ProcessDefinition need WSDL location field if once exposed as a Web service
String srcProcName = srcProc.getName().getText().replace(' ', '_');
mySvcDef.setName(srcProcName);
mySvcDef.setWsdlLocation("http://localhost:8082/axis/services/" + srcProcName );
mySvcDef.setStubPackage("org.uengine");
dstProc.setServiceDefinitions(new ServiceDefinition[]{mySvcDef});
Role myRole = new Role();
//review: seems occur namespace collision
myRole.setName(srcProcName);
myRole.setServiceType(mySvcDef);
dstProc.setRoles(new Role[]{myRole});
dstProc.setName(role.getName());
MessageDefinition message = new MessageDefinition();
ServiceDefinition svcDef = role.getServiceType();
// Definition wsdlDef = svcDef.getDefinition();
// keyedContext.put(WSDL_DEF, wsdlDef);
keyedContext.put(DEST_PROC, dstProc);
keyedContext.put(MSG_DEFS, new ExclusiveList());