if (BpelProcess.__log.isTraceEnabled()) {
BpelProcess.__log.trace(ObjectPrinter.stringifyMethodEnter("initializeEndpointReferences", new Object[] {
"parentScopeId", parentScopeId, "partnerLinks", partnerLinks }));
}
ScopeDAO parent = _dao.getScope(parentScopeId);
for (OPartnerLink partnerLink : partnerLinks) {
PartnerLinkDAO pdao = parent.createPartnerLink(partnerLink.getId(), partnerLink.name,
partnerLink.myRoleName, partnerLink.partnerRoleName);
// If there is a myrole on the link, initialize the session id so it
// is always
// available for opaque correlations. The myrole session id should
// never be changed.