code: public FavoriteResources favoriteResources() {
          if (favorites.get() == null) {
              favorites.compareAndSet(null, new FavoriteResourcesImpl(this));
          }
          return favorites.get();
      }
docs: Returns the FavoriteResources instance that provides access to Favorite resources.
  
  @return the favorite resources