code: @PUT
      @Consumes(MediaType.APPLICATION_XML)
      @Produces(MediaType.APPLICATION_XML)
      public Response updateTemplate(@Context HttpHeaders hh, String payload){
          logger.debug("Insert /templates");
          try{
              TemplateHelper templateRestService = getTemplateHelper();
              String serializedTemplate = templateRestService.updateTemplate(hh, payload);
              if (serializedTemplate !=null)
                  return buildResponse(500, printError(500, "Error updating template the SLA Repository Database"));
              else
                  return buildResponse(200, serializedTemplate);
          } catch (HelperException e) {
              logger.info("updateTemplate exception:"+e.getMessage());
              return buildResponse(e);
          }
      }
docs: Updates the information of an specific template
  If the template it is not in the database, it returns 404 with empty payload
  
  <pre>
  PUT /templates
  
  
  Request:
  POST /templates HTTP/1.1
  Accept: application/xml
  
  Response:
  
  {@code
  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <message code="204" message="The template with uuid:contract-template-2007-12-04 was updated successfully"/>
  }
  
  </pre>
  
  Example: <li>curl -H "Content-type: application/xml" -X PUT -d @template01.xml localhost:8080/sla-service/templates</li>
  
  @return XML information that the template has been updated successfully