UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo());
new ValidateNode(publisher).validateSaveNode(em, body);
NodeDetail result = new NodeDetail();
List<org.apache.juddi.api_v3.Node> apiNodeList = body.getNode();;
for (org.apache.juddi.api_v3.Node apiNode : apiNodeList) {
org.apache.juddi.model.Node modelNode = new org.apache.juddi.model.Node();
MappingApiToModel.mapNode(apiNode, modelNode);
Object existingUddiEntity = em.find(modelNode.getClass(), modelNode.getName());
if (existingUddiEntity != null) {
em.merge(modelNode);
} else {
em.persist(modelNode);
}
result.getNode().add(apiNode);
}
tx.commit();
return result;
} finally {