code: public final void replace(final List<Resource> r1, final List<Resource> r2) {
      this.resources.removeAll(r1);
      this.resources.addAll(r2);
    }
docs: Replaces all <code>r1</code> {@link Resource}s with <code>r2</code>
  {@link Resource}s.
  
  @param r1
  @param r2