if(slt != null) {
partnerLink.setPartnerLinkType(slt);
if (partnerLinkElement.hasAttribute("myRole")) {
RoleProxy role = new RoleProxy(resource, slt, partnerLinkElement.getAttribute("myRole"));
partnerLink.setMyRole(role);
}
if (partnerLinkElement.hasAttribute("partnerRole")) {
RoleProxy role = new RoleProxy(resource, slt, partnerLinkElement.getAttribute("partnerRole"));
partnerLink.setPartnerRole(role);
}
}
}