code: @Override
      public String getRemoteUser() {
          String user = getHeader("X_REMOTE_USER");
          if (user != null) {
              return user;
          } else {
              return super.getRemoteUser();
          }
      }
docs: Returns the user defined as parameter "user" if present.