static void fillFromSession(OriginalDestination originalDestination, Session session) {
    OriginalDestination storedDestination = (OriginalDestination) session.getAttribute(KEY);

    if (storedDestination != null) {
      originalDestination.setUri(storedDestination.getUri());
    }
  }
 public void storeInSession(Session session) {
   session.setAttribute(KEY, this);
 }