code: public CmsPublishList getRelatedResourcesToPublish(CmsObject cms, CmsPublishList publishList) throws CmsException {
  
          return m_securityManager.getRelatedResourcesToPublish(
              cms.getRequestContext(),
              publishList,
              CmsRelationFilter.TARGETS.filterStrong());
      }
docs: Returns a new publish list that contains the unpublished resources related
  to all resources in the given publish list, the related resources exclude
  all resources in the given publish list and also locked (by other users) resources.<p>
  
  @param cms the cms request context
  @param publishList the publish list to exclude from result
  
  @return a new publish list that contains the related resources
  
  @throws CmsException if something goes wrong