code: @POST
      public Response createTemplate(@Context UriInfo uriInfo, TemplateParam templateParam) throws NotFoundException, ConflictException, InternalException {
          logger.debug("StartOf createTemplate - Insert /templates");
  
          TemplateHelperE templateRestHelper = getTemplateHelper();
          String id, location = null;
          try {
              id = templateRestHelper.createTemplate(templateParam.getTemplate(), templateParam.getOriginalSerialzedTemplate());
              location = buildResourceLocation(uriInfo.getAbsolutePath().toString() ,id);
          } catch (DBMissingHelperException e) {
              logger.info("createTemplate ConflictException"+ e.getMessage());
              throw new ConflictException(e.getMessage());
          } catch (DBExistsHelperException e) {
              logger.info("createTemplate ConflictException"+ e.getMessage());
              throw new ConflictException(e.getMessage());
          } catch (InternalHelperException e) {
              logger.info("createTemplate InternalException", e);
              throw new InternalException(e.getMessage());
          } catch (ParserHelperException e) {
              logger.info("createTemplate ParserHelperException", e);
              throw new InternalException(e.getMessage());
          }
          logger.debug("EndOf createTemplate");
          return buildResponsePOST(
              HttpStatus.CREATED,
              createMessage(
                      HttpStatus.CREATED, id,
                      "The template has been stored successfully in the SLA Repository Database. It has location "+location),location);
          
      }
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
  template
  
  
  <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
  @throws NotFoundException
  @throws ConflictException
  @throws InternalException