class MachineSpringResource {

    @ApiOperation("Get all machines")
    @GetMapping
    public MachineQueryResult getMachines(@RequestParam MultiValueMap<String, String> queryParameters) {
        QueryRequest.Builder queryBuilder = QueryRequest.newBuilder();
        Page page = RestUtil.createPage(queryParameters);

        queryBuilder.setPage(page);
        queryBuilder.putAllFilteringCriteria(RestUtil.getFilteringCriteria(queryParameters));
        queryBuilder.addAllFields(RestUtil.getFieldsParameter(queryParameters));

        return machineServiceStub.getMachines(queryBuilder.build()).block(TIMEOUT);
    }

    @Inject public  MachineSpringResource(ReactorMachineServiceStub machineServiceStub);

}