code: private String isLoggedIn() throws RuntimeException {
          if(this.getUser() != null && this.getUser().getAuthToken() != null){
              return "CUSTOM " + this.getUser().getAuthToken();
          } else {
              throw new RuntimeException("User state error.");
          }
      }
docs: Used to determine if a user is logged in localy, if not remote operations can not be performed.
  @return authentication token for logged in user.
  @throws RuntimeException Execption thrown if if remote operaton is requested but no user is logged in.