public String removeAgreement(String agreementId) {
        Invocation invocation = getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request()
                .header("Accept", MediaType.APPLICATION_JSON)
                .header("Content-Type", MediaType.APPLICATION_JSON)
                .buildDelete();

        //SLA Core returns a text message if the response was succesfully not the object, this is not the best behaviour
        return invocation.invoke().readEntity(String.class);
    }
public String removeAgreement ( String agreementId ) { Invocation invocation = getJerseyClient ( ) . target ( getEndpoint ( ) + "/agreements/" + agreementId ) . request ( ) . header ( "Accept" , MediaType . APPLICATION_JSON ) . header ( "Content-Type" , MediaType . APPLICATION_JSON ) . buildDelete ( ) ; return invocation . invoke ( ) . readEntity ( String . class ) ; }
Creates proxied HTTP DELETE request to SeaClouds SLA core which removes the SLA from the SLA Core
@param agreementId of the SLA Agreement to be removed. This ID may differ from SeaClouds Application ID
@return String representing that the Agreement was removed  properly