class FederationV2CapacityGroupResource {

    @GET
    public List<ApplicationSlaRepresentation> getApplicationSLAs(@QueryParam("extended") boolean extended) {
        Either<List<ApplicationSlaRepresentation>, WebApplicationException> result = CellWebClientConnectorUtil.doGetAndMerge(
                cellWebClientConnector,
                API_PATH + "?extended=" + extended,
                APPLICATION_SLA_LIST_TP,
                configuration.getRestRequestTimeoutMs()
        );
        if (result.hasError()) {
            throw result.getError();
        }
        return result.getValue();
    }

    @Inject public  FederationV2CapacityGroupResource(EndpointConfiguration configuration,
                                             CellWebClientConnector cellWebClientConnector);

}