if (isPayloadRelatedAttribute(localAttribute)) {
String payloadId = getPayloadIdFromAttribute(localAttribute);
if (findAttributeByPayloadId(localAttribute.getAttributeName(),
payloadId, newLocalDescriptor) == null) {
newLocalDescriptor.addAttribute(localAttribute);
}
} else if (newLocalDescriptor.getAttribute(localAttribute.getAttributeName()) == null) {
newLocalDescriptor.addAttribute(localAttribute);
}
}