// Only add it if there is no rel with the same
// id there already
if (isRelIdOccupied(relId)) {
log.error("Refusing to add another rel with id " + relId
+ ". Target is " + rel.getTarget() );
throw new InvalidOperationException(
"Refusing to add another rel with id " + relId
+ ". Target is " + rel.getTarget() );
}
jaxbElement.getRelationship().add(rel);
rel.setParent(jaxbElement);