code: private static Map<String, IAtomBase> generateRgroupMap(final String detail, final AbstractMolecule molecule) throws CTKException {
      Map<String, IAtomBase> rgroupMap = new HashMap<String, IAtomBase>();
      for (Map.Entry<String, IAtomBase> e : molecule.getRgroups().entrySet()) {
        rgroupMap.put(detail + ":" + e.getKey(), e.getValue());
      }
  
      return rgroupMap;
    }
docs: method to generate for a molecule the RgroupMap: Map of unused Rgroups
  
  @param detail name of the molecule
  @param molecule input Molecule
  @return generated RgroupMap
  @throws CTKException