question: public void loadMappingFile ( String fileName , MapType mapType , boolean reload , ProgressListener progress ) throws CanceledException { switch ( mapType ) { default : case GI : { if ( giMap == null || reload ) { if ( giMap != null ) { try { giMap . close ( ) ; } catch ( IOException e ) { Basic . caught ( e ) ; } } try { this . giMap = giMapFactory . create ( name2IdMap , fileName , progress ) ; loadedMaps . add ( mapType ) ; activeMaps . add ( mapType ) ; map2Filename . put ( mapType , fileName ) ; } catch ( Exception e ) { if ( e instanceof CanceledException ) throw ( CanceledException ) e ; Basic . caught ( e ) ; } } break ; } case Accession : { if ( accessionMap == null || reload ) { if ( accessionMap != null ) { try { accessionMap . close ( ) ; } catch ( IOException e ) { Basic . caught ( e ) ; } } try { this . accessionMap = accessionMapFactory . create ( name2IdMap , fileName , progress ) ; loadedMaps . add ( mapType ) ; activeMaps . add ( mapType ) ; map2Filename . put ( mapType , fileName ) ; } catch ( Exception e ) { if ( e instanceof CanceledException ) throw ( CanceledException ) e ; Basic . caught ( e ) ; } } break ; } case Synonyms : { if ( synonymsMap == null || reload ) { if ( synonymsMap != null ) { try { synonymsMap . close ( ) ; } catch ( IOException e ) { Basic . caught ( e ) ; } } final String2IntegerMap synonymsMap = new String2IntegerMap ( ) ; try { synonymsMap . loadFile ( name2IdMap , fileName , progress ) ; this . synonymsMap = synonymsMap ; loadedMaps . add ( mapType ) ; activeMaps . add ( mapType ) ; map2Filename . put ( mapType , fileName ) ; } catch ( Exception e ) { if ( e instanceof CanceledException ) throw ( CanceledException ) e ; Basic . caught ( e ) ; } } } } }
target:  load the named file of the given map type