private static void addAdHocMonomer ( MonomerNotation monomerNotation ) throws IOException , JDOMException , ChemistryException { Monomer monomer = MonomerFactory . getInstance ( ) . getMonomerStore ( ) . getMonomer ( monomerNotation . getType ( ) , monomerNotation . getUnit ( ) . replace ( "[" , "" ) . replace ( "]" , "" ) ) ; if ( monomer . isAdHocMonomer ( ) ) { set . add ( monomer ) ; } }
method to add the monomer to the database if it is an adhoc monomer