code: @Override
      public IAtomContainer[] getFragmentsAsContainers() {
          List<IAtomContainer> allfrags = new ArrayList<IAtomContainer>();
          allfrags.addAll(frameMap.values());
          allfrags.addAll(ringMap.values());
          return allfrags.toArray(new IAtomContainer[0]);
      }
docs: Get all frameworks and ring systems as {@link IAtomContainer} objects.
  
  @return An array of structures representing frameworks and ring systems