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