code: public static IAtom[] getAtomArray(List<IAtom> list) {
          IAtom[] ret = new IAtom[list.size()];
          for (int i = 0; i < ret.length; ++i)
              ret[i] = list.get(i);
          return ret;
      }
docs: Constructs an array of Atom objects from a List of Atom objects.
  @param  list The original List.
  @return The array of Atom objects.