예제 #1
0
 public static OMElement buildOMElement(String payload) throws RegistryException {
   OMElement element;
   try {
     element = AXIOMUtil.stringToOM(payload);
     element.build();
   } catch (Exception e) {
     String message =
         "Unable to parse the XML configuration. Please validate the XML configuration";
     log.error(message, e);
     throw new RegistryException(message, e);
   }
   return element;
 }