if (currentNet.getToolspecificArray(j)
.isSetPartnerLinks()) {
TPartnerLinks plist = currentNet
.getToolspecificArray(j).getPartnerLinks();
for (int x = 0; x < plist.sizeOfPartnerLinkArray(); x++) {
TPartnerLink link = plist
.getPartnerLinkArray(x);
if (link.isSetMyRole()
&& link.isSetPartnerRole()) {
currentPetrinet.getElementContainer()
.addPartnerLink(
link.getName(),
link.getPartnerLinkType()
.getNamespaceURI(),
link.getPartnerLinkType()
.getLocalPart(),
link.getPartnerRole(),
link.getMyRole(),
link.getWSDL());
} else if (link.isSetMyRole()) {
currentPetrinet.getElementContainer()
.addPartnerLinkWithoutPartnerRole(
link.getName(),
link.getPartnerLinkType()
.getNamespaceURI(),
link.getPartnerLinkType()
.getLocalPart(),
link.getMyRole(),
link.getWSDL());
} else if (link.isSetPartnerRole()) {
currentPetrinet.getElementContainer()
.addPartnerLinkWithoutMyRole(
link.getName(),
link.getPartnerLinkType()
.getNamespaceURI(),
link.getPartnerLinkType()
.getLocalPart(),
link.getPartnerRole(),
link.getWSDL());
}
}
}
if (currentNet.getToolspecificArray(j).isSetVariables()) {