code: @GET
      @Produces(MediaType.APPLICATION_XML)
      public Response getAgreements(
              @QueryParam("consumerId") String consumerId,
              @QueryParam("providerId") String providerId,
              @QueryParam("active") BooleanParam active)  {
          logger.debug("StartOf getAgreements - REQUEST for /agreements");
          try{
              AgreementHelper agreementRestService = getAgreementHelper();
              String serializedAgreement =  agreementRestService.getAgreements(consumerId, providerId, BooleanParam.getValue(active));
              
              Response result = buildResponse(200, serializedAgreement);
              logger.debug("EndOf getAgreements");
              return result;
              
          } catch (HelperException e) {
              logger.info("getAgreements exception:"+e.getMessage());
              return buildResponse(e);
          }
  
      }
docs: Gets a the list of available agreements from where we can get metrics,
  host information, etc.
  
  <pre>
  GET /agreements{?providerId,consumerId,active}
  
  Request:
  GET /agreements HTTP/1.1
  
  Response:
  HTTP/1.1 200 OK
  Content-type: application/xml
  {@code
  <?xml version="1.0" encoding="UTF-8"?>
  <collection href="/agreements">
  <items offset="0" total="1">
  <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"
  AgreementId="d25eea60-7cfe-11e3-baa7-0800200c9a66">
  ...
  </wsag:Agreement>
  </items>
  </collection>
  }
  
  </pre>
  
  Example:
  <li>curl http://localhost:8080/sla-service/agreements</li>
  <li>curl http://localhost:8080/sla-service/agreements?consumerId=user-10343</li>
  
  @throws JAXBException