code: @POST
      @Consumes(MediaType.APPLICATION_XML)
      @Produces(MediaType.APPLICATION_XML)
      public Response createAgreement(@Context HttpHeaders hh,@Context UriInfo uriInfo,  String payload){
          logger.debug("StartOf createAgreement - Insert /agreements");
          String location = null;
          try{
              AgreementHelper agreementRestService = getAgreementHelper();
              location = agreementRestService.createAgreement(hh,uriInfo.getAbsolutePath().toString(), payload);
          } catch (HelperException e) {
              logger.info("createAgreement exception", e);
              return buildResponse(e);
          }
          Response result = buildResponsePOST(HttpStatus.CREATED, 
                  printMessage(
                      HttpStatus.CREATED,
                      "The agreement has been stored successfully in the SLA Repository Database with location:"+location),
                  location);
          logger.debug("EndOf createAgreement");
          return result;
      }
docs: Creates a new agreement
  
  
  <pre>
  POST /agreements
  
  Request:
  POST /agreements HTTP/1.1
  Accept: application/xml
  
  Response:
  HTTP/1.1 201 Created
  Content-type: application/xml
  Location: http://.../agreements/$uuid
  
  {@code
  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <message code="201" message= "The agreement has been stored successfully in the SLA Repository Database"/>
  }
  
  </pre>
  
  Example:
  <li>curl -H "Content-type: application/xml" -d@agreement02.xml
  localhost:8080/sla-service/agreements -X POST</li>
  
  @return XML information with the different details of the agreement