public void readDictionary ( Reader reader , String name ) { name = name . toLowerCase ( ) ; logger . debug ( "Reading dictionary: " , name ) ; if ( ! dictionaries . containsKey ( name ) ) { try { Dictionary dictionary = Dictionary . unmarshal ( reader ) ; dictionaries . put ( name , dictionary ) ; logger . debug ( " ... loaded and stored" ) ; } catch ( Exception exception ) { logger . error ( "Could not read dictionary: " , name ) ; logger . debug ( exception ) ; } } else { logger . error ( "Dictionary already loaded: " , name ) ; } }
Reads a custom dictionary into the database .