private void updateMonomerStore ( MonomerStore monomerStore ) throws MonomerLoadingException , IOException , MonomerException , ChemistryException { for ( Monomer monomer : monomerStore . getAllMonomersList ( ) ) { MonomerFactory . getInstance ( ) . getMonomerStore ( ) . addNewMonomer ( monomer ) ; // save monomer db to local file after successful update // MonomerFactory . getInstance ( ) . saveMonomerCache ( ) ; } }
method to combine the new MonomerStore to the existing one in case of xHELM as input