code: protected Set<CmsPublishedResource> getSiblings(CmsObject cms, CmsPublishedResource pubResource)
      throws CmsException {
  
          Set<CmsPublishedResource> siblings = new HashSet<CmsPublishedResource>();
          for (Iterator<String> i = getSiblingsList(cms, pubResource.getRootPath()).iterator(); i.hasNext();) {
              String sibling = i.next();
              siblings.add(new CmsPublishedResource(cms.readResource(sibling)));
          }
          return siblings;
      }
docs: Returns all siblings of the published resource as list of <code>CmsPublishedResource</code>.<p>
  
  @param cms the cms object
  @param pubResource the published resource
  
  @return all siblings of the published resource
  
  @throws CmsException if something goes wrong