@GET @Path("/{idCentroCusto}/lancamento/programado") @Produces(MediaType.APPLICATION_JSON) public CentroCusto findLancamentoProgramado(@PathParam("idCentroCusto") Integer idCentroCusto) { try { init(); return centroCustoService.findLancamentoProgramado(idCentroCusto); } catch (Exception ex) { throw new WebApplicationException(getMessageError(ex.getMessage())); } }