public Agreement getAgreementByTemplateId(String slaAgreementTemplateId) {
        return getJerseyClient().target(getEndpoint() + "/seaclouds/commands/fromtemplate?templateId=" + slaAgreementTemplateId).request()
                .header("Accept", MediaType.APPLICATION_JSON)
                .header("Content-Type", MediaType.APPLICATION_JSON)
                .buildGet().invoke().readEntity(Agreement.class);
    }
public Agreement getAgreementByTemplateId ( String slaAgreementTemplateId ) { return getJerseyClient ( ) . target ( getEndpoint ( ) + "/seaclouds/commands/fromtemplate?templateId=" + slaAgreementTemplateId ) . request ( ) . header ( "Accept" , MediaType . APPLICATION_JSON ) . header ( "Content-Type" , MediaType . APPLICATION_JSON ) . buildGet ( ) . invoke ( ) . readEntity ( Agreement . class ) ; }
Creates proxied HTTP GET request to SeaClouds SLA which returns the Agreement according to the template id
@param slaAgreementTemplateId SLA Agreement template ID
@return the Agreement