code: public ResourceMap getPublishRelatedResources() {
  
          ResourceMap related = computeRelatedResources();
          ResourceMap reachable = computeReachability(related);
          ResourceMap publishRelatedResources = getChangedResourcesReachableFromOriginalResources(reachable);
          removeNestedItemsFromTopLevel(publishRelatedResources);
          //addParentFolders(publishRelatedResources);
          removeUnchangedTopLevelResources(publishRelatedResources, reachable);
          return publishRelatedResources;
      }
docs: Gets the related resources in the form of a ResourceMap.<p>
  
  @return a ResourceMap which has resources from the original set of resources as keys, and sets of related resources as values