docs: public boolean checkForProblems(Set<CmsUUID> resourceIds) {
  
          List<CmsPublishResource> pubResources = new ArrayList<CmsPublishResource>();
          Set<CmsUUID> publishIds = getResourcesToPublish();
          for (CmsUUID publishId : publishIds) {
              pubResources.add(m_model.getPublishResources().get(publishId));
          }
          for (CmsPublishResource pubResource : pubResources) {
              String parentPath = CmsResource.getParentFolder(pubResource.getName());
              CmsPublishResource parent = m_model.getPublishResourcesByPath().get(parentPath);
              if (parent != null) {
                  boolean parentIsNew = parent.getResourceState().isNew();
                  boolean parentIsDeleted = parent.getResourceState().isDeleted();
                  if (parentIsNew || parentIsDeleted) {
                      if (!resourceIds.contains(parent.getId())) {
                          String title = Messages.get().key(Messages.ERR_CANT_PUBLISH_RESOURCE_TITLE_0);
                          String message = null;
                          if (parentIsNew) {
                              message = Messages.get().key(
                                  Messages.ERR_PUBLISH_CANT_PUBLISH_NEW_RESOURCE_2,
                                  pubResource.getName(),
                                  parent.getName());
                          }
                          if (parentIsDeleted) {
                              message = Messages.get().key(
                                  Messages.ERR_PUBLISH_CANT_PUBLISH_DELETED_RESOURCE_2,
                                  pubResource.getName(),
                                  parent.getName());
                          }
                          CmsAlertDialog alert = new CmsAlertDialog(title, message);
                          alert.center();
                          return true;
                      }
                  }
              }
          }
          return false;
      }