code: @POST
      @Consumes(MediaType.APPLICATION_XML)
      @Produces(MediaType.APPLICATION_XML)
      public Response createTemplate(@Context HttpHeaders hh,@Context UriInfo uriInfo, String payload) {
          logger.debug("StartOf createTemplate - Insert /templates");
  
          TemplateHelper templateRestHelper = getTemplateHelper();
          try {
              String location = templateRestHelper.createTemplate(hh, uriInfo.getAbsolutePath().toString(), payload);
              
              logger.debug("EndOf createTemplate");
              return buildResponsePOST(
                      HttpStatus.CREATED,
                      printMessage(
                              HttpStatus.CREATED,
                              "The template has been stored successfully in the SLA Repository Database"),
                      location);
          } catch (HelperException e) {
              logger.info("createTemplate exception:"+e.getMessage());
              return buildResponse(e);
          }
      }
docs: Returns the information of an specific template If the template it is not
  in the database, it returns 404 with empty payload /** Creates a new
  agreement
  
  
  <pre>
  POST /templates
  
  Request:
  POST /templates HTTP/1.1
  Accept: application/xml
  
  Response:
  HTTP/1.1 201 Created
  Content-type: application/xml
  Location: http://.../templates/$uuid
  
  {@code
  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <message code="201" message= "The template has been stored successfully in the SLA Repository Database"/>
  }
  </pre>
  
  Example: <li>curl -H "Content-type: application/xml" -X POST -d @template01.xml localhost:8080/sla-service/templates</li>
  
  @return XML information that the template has been created successfully