@RequestMapping(value = {"/SucursalBancaria/{nombreSucursal}"}, method = RequestMethod.GET)
    public void readByName(HttpServletRequest httpRequest, HttpServletResponse httpServletResponse, @PathVariable("nombreSucursal") String nombreSucursal) {
        ObjectMapper jackson = new ObjectMapper();
        String json = null;
        try {
//            if(httpRequest.getParameter("nombre") != null){
            json = jackson.writeValueAsString(sucursalBancariaDAO.findByNombre(nombreSucursal));
//            }else{
//            json = jackson.writeValueAsString(sucursalBancariaDAO.findAll());
//            }
            httpServletResponse.setStatus(HttpServletResponse.SC_OK);
            httpServletResponse.setContentType("application/json; charset=UTF-8");
            noCache(httpServletResponse);
            httpServletResponse.getWriter().println(json);

        } catch (Exception ex) {
            noCache(httpServletResponse);
            httpServletResponse.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
            httpServletResponse.setContentType("text/plain; charset=UTF-8");
            try {
                noCache(httpServletResponse);
                ex.printStackTrace(httpServletResponse.getWriter());
            } catch (Exception ex1) {
                noCache(httpServletResponse);
            }
        }


    }