String scaService = reader.getAttributeValue(SCA_BPEL_NS, "service");
String scaReference = reader.getAttributeValue(SCA_BPEL_NS, "reference");
if ((scaService != null) && (scaReference != null)) {
// It is incorrect to set both service & reference attributes
error("PartnerLinkHasBothAttr", partnerLink, reader.getAttributeValue(null, "name"));
throw new ContributionReadException("BPEL PartnerLink " + reader.getAttributeValue(null, "name") + " has both sca:reference and sca:service attributes set");
}
// Set the SCA type and the related name, if present
if (scaService != null)
partnerLink.setAsService(scaService);