code: public static IAtomContainer getAtomContainer(IMolecularFormula formula) {
  
          IAtomContainer atomContainer = formula.getBuilder().newInstance(IAtomContainer.class);
          return getAtomContainer(formula, atomContainer);
      }
docs: Method that actually does the work of convert the IMolecularFormula
  to IAtomContainer.
  <p> The hydrogens must be implicit.
  
  @param  formula  IMolecularFormula object
  @return          the filled AtomContainer
  @see             #getAtomContainer(IMolecularFormula, IAtomContainer)