code: public void merge(PageSpec spec) {
          if (spec == null) {
              throw new IllegalArgumentException("Cannot merge null spec");
          }
          objects.putAll(spec.getObjects());
          sections.addAll(spec.getSections());
          objectGroups.putAll(spec.getObjectGroups());
  	}
docs: Merges all objects, sections and objectGroups from spec