code: @GET
      public List<ITemplate> getTemplates(@QueryParam("providerId") String providerId, @QueryParam("serviceIds") String serviceIds)  {
          logger.debug("StartOf getTemplates - REQUEST for /templates");
          TemplateHelperE templateRestHelper = getTemplateHelper();
          // we remove the blank spaces just in case somebody is adding them
          String serviceIdsSplitted[] = null;
          if (serviceIds!=null){
              String serviceIdsSplittedTmp[] = serviceIds.split(",");
              serviceIdsSplitted = new String[serviceIdsSplittedTmp.length];
              String tmp = "";
              for (int i=0; i<serviceIdsSplittedTmp.length;i++){
                  serviceIdsSplitted[i] = serviceIdsSplittedTmp[i].trim();
                  tmp+= "  "+serviceIdsSplitted[i];
              }
              logger.debug("getTemplates will search for service ids:"+tmp);
          }
          List<ITemplate> templates =  templateRestHelper.getTemplates(providerId, serviceIdsSplitted);
          logger.debug("EndOf getTemplates");
          return templates;
      }
docs: Gets a the list of available templates from where we can get metrics,
  host information, etc.
  
  <pre>
  GET /templates
  
  Request:
  GET /templates{?serviceId} HTTP/1.1
  
  Response:
  
  HTTP/1.1 200 Ok
  {@code
  <?xml version="1.0" encoding="UTF-8"?>
  <collection href="/templates">
  <items offset="0" total="1">
  <wsag:Template>...</wsag:Template>
  ...
  </items>
  </collection>
  }
  
  </pre>
  
  Example: <li>curl http://localhost:8080/sla-service/templates</li>
  <li>curl http://localhost:8080/sla-service/templates?serviceIds=service02</li>
  <li>curl http://localhost:8080/sla-service/templates?serviceIds=service02,service03</li>
  @return XML information with the different details and urls of the
  templates