if(service == null)
service = new OdeService(this, endpoint);
try {
ProcessConf pc = _store.getProcessConfiguration(pid);
InputStream is = pc.getCBPInputStream();
OProcess compiledProcess = null;
try {
Serializer ofh = new Serializer(is);
compiledProcess = ofh.readOProcess();
} finally {
is.close();
}
QName portType = null;
for (Map.Entry<String, Endpoint> provide : pc.getProvideEndpoints().entrySet()) {
if (provide.getValue().equals(endpoint)) {
OPartnerLink plink = compiledProcess.getPartnerLink(provide.getKey());
portType = plink.myRolePortType.getQName();
break;
}
}
if (portType == null) {