code: @PUT
      @Path("{uuid}")
      public ITemplate updateTemplate(@PathParam("uuid") String uuid, TemplateParam templateParam) throws InternalException, NotFoundException, ConflictException{
          logger.debug("StartOf updateTemplate");
          ITemplate updatedTemplate = null;
          try{
              TemplateHelperE templateRestHelper = getTemplateHelper();
              updatedTemplate = templateRestHelper.updateTemplate(uuid, templateParam.getTemplate(), templateParam.getOriginalSerialzedTemplate());
          } catch (ParserHelperException e) {
              logger.info("updateTemplate exception", e);
              throw new InternalException(e.getMessage());
          } catch (InternalHelperException e) {
              logger.info("updateTemplate ConflictException:"+ e.getMessage());
              throw new ConflictException(e.getMessage());
          } catch (DBMissingHelperException e) {
              logger.info("updateTemplate ConflictException: "+ e.getMessage());
              throw new ConflictException(e.getMessage());
          } catch (DBExistsHelperException e){
              logger.info("updateTemplate ConflictException: "+ e.getMessage());
              throw new ConflictException(e.getMessage());        
          }
          
          
          if (updatedTemplate==null){
              logger.info("updateTemplate: Couldn't update template, "+templateParam.getTemplate().getTemplateId()+ ",please check that it exists in database");
              throw new NotFoundException("Couldn't update template, "+templateParam.getTemplate().getTemplateId()+ ",please check that it exists in database");
          }
  
          logger.debug("EndOf updateTemplate");
          return updatedTemplate;
      }
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
  @throws InternalException
  @throws NotFoundException