CmsPublishList publishList = new CmsPublishList(pubResources, m_options.isIncludeSiblings(), false);
CmsRelationPublishValidator validator = new CmsRelationPublishValidator(m_cms, publishList);
for (String resourceName : validator.keySet()) {
CmsRelationValidatorInfoEntry infoEntry = validator.getInfoEntry(resourceName);
try {
<BUG>CmsResource resource = m_cms.readResource(resourceName, CmsResourceFilter.ALL);
if (resource.getState().isDeleted()) {</BUG>
for (CmsRelation relation : infoEntry.getRelations()) {
try {
CmsResource theResource = relation.getSource(m_cms, CmsResourceFilter.ALL);

CmsPublishList publishList = new CmsPublishList(pubResources, m_options.isIncludeSiblings(), false);
CmsRelationPublishValidator validator = new CmsRelationPublishValidator(m_cms, publishList);
for (String resourceName : validator.keySet()) {
CmsRelationValidatorInfoEntry infoEntry = validator.getInfoEntry(resourceName);
try {
CmsResource resource = m_cms.readResource(
m_cms.getRequestContext().removeSiteRoot(resourceName),
CmsResourceFilter.ALL);
if (resource.getState().isDeleted()) {
for (CmsRelation relation : infoEntry.getRelations()) {
try {
CmsResource theResource = relation.getSource(m_cms, CmsResourceFilter.ALL);
