/// <summary>  Perform a walk in the given RingSet, starting at a given Ring and
        /// recursivly searching for other Rings connected to this ring. By doing
        /// this it finds all rings in the RingSet connected to the start ring,
        /// putting them in newRs, and removing them from rs.
        ///
        /// </summary>
        /// <param name="rs">    The RingSet to be searched
        /// </param>
        /// <param name="ring">  The ring to start with
        /// </param>
        /// <param name="newRs"> The RingSet containing all Rings connected to ring
        /// </param>
        /// <returns>        newRs The RingSet containing all Rings connected to ring
        /// </returns>
        private static IRingSet walkRingSystem(IRingSet rs, IRing ring, IRingSet newRs)
        {
            IRing tempRing;

            System.Collections.IList tempRings = rs.getConnectedRings(ring);
            if (debug)
            {
                System.Console.Out.WriteLine("walkRingSystem -> tempRings.size(): " + tempRings.Count);
            }
            rs.removeAtomContainer(ring);
            System.Collections.IEnumerator iter = tempRings.GetEnumerator();
            //UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratorhasNext'"
            while (iter.MoveNext())
            {
                //UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'"
                tempRing = (IRing)iter.Current;
                if (!newRs.contains(tempRing))
                {
                    newRs.addAtomContainer(tempRing);
                    newRs.add(walkRingSystem(rs, tempRing, newRs));
                }
            }
            return(newRs);
        }
 /// <summary>  Perform a walk in the given RingSet, starting at a given Ring and
 /// recursivly searching for other Rings connected to this ring. By doing
 /// this it finds all rings in the RingSet connected to the start ring,
 /// putting them in newRs, and removing them from rs.
 /// 
 /// </summary>
 /// <param name="rs">    The RingSet to be searched
 /// </param>
 /// <param name="ring">  The ring to start with
 /// </param>
 /// <param name="newRs"> The RingSet containing all Rings connected to ring
 /// </param>
 /// <returns>        newRs The RingSet containing all Rings connected to ring
 /// </returns>
 private static IRingSet walkRingSystem(IRingSet rs, IRing ring, IRingSet newRs)
 {
     IRing tempRing;
     System.Collections.IList tempRings = rs.getConnectedRings(ring);
     if (debug)
     {
         System.Console.Out.WriteLine("walkRingSystem -> tempRings.size(): " + tempRings.Count);
     }
     rs.removeAtomContainer(ring);
     System.Collections.IEnumerator iter = tempRings.GetEnumerator();
     //UPGRADE_TODO: Method 'java.util.Iterator.hasNext' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratorhasNext'"
     while (iter.MoveNext())
     {
         //UPGRADE_TODO: Method 'java.util.Iterator.next' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilIteratornext'"
         tempRing = (IRing)iter.Current;
         if (!newRs.contains(tempRing))
         {
             newRs.addAtomContainer(tempRing);
             newRs.add(walkRingSystem(rs, tempRing, newRs));
         }
     }
     return newRs;
 }