code: @Path("self")
      public DirectoryObjectResource<User, APIUser> getSelfResource()
              throws GuacamoleException {
          return userResourceFactory.create(userContext,
                  userContext.getUserDirectory(), userContext.self());
      }
docs: Returns a new resource which represents the User whose access rights
  control the operations of the UserContext exposed by this
  UserContextResource.
  
  @return
  A new resource which represents the User whose access rights
  control the operations of the UserContext exposed by this
  UserContextResource.
  
  @throws GuacamoleException
  If an error occurs while retrieving the User.