@GET @Path("cuenta/entidad/{idEntidad}") @Produces(value = MediaType.APPLICATION_JSON) public Integer getSumaPagosPorEntidad( @PathParam("idEntidad") final Integer idEntidad, @QueryParam("openOnly") final String openOnly) { return pagoDelegate.getSumaPagosByEntidad(idEntidad, Optional.ofNullable(openOnly)); }