code: private String getParentFolder() {
  
          String relativeTo;
          if (isDirectPublish()) {
              relativeTo = CmsResource.getParentFolder(getResourceList().get(0));
          } else {
              relativeTo = getCms().getRequestContext().getSiteRoot() + "/";
          }
          return relativeTo;
      }
docs: Returns the parent folder for the publish process.<p>
  
  @return the parent folder for the publish process