1 public List<User> getAllUsers() throws DaoException { 2 3 Date d = new Date(); 4 5 List<User> users= null; 6 7 try { 8 9 // code 10 11 log.debug("method time: " + (new Date().getTime() - d.getTime()) + " ms"); 12 13 return users; 14 15 } catch (Exception e) { 16 17 log.error("Error al insertar un organismo - " + e.toString()); 18 19 throw new DaoException(e, "error getting users..."); 20 } 21 }