boolean exist = false;
if (count == 1) {
exist = true;
} else {
MetadataRelation entity = new MetadataRelation().setId(new MetadataRelationId(parentId, childId));
metadataRelationRepository.save(entity);
}
Element response = new Element(Jeeves.Elem.RESPONSE)
.setAttribute("alreadyExist", String.valueOf(exist))
.addContent(