question: public static void ensureCredentialsHaveBeenLoadedFromProperties ( ) { if ( ! loaded ) { final String [ ] credentials = ProgramProperties . get ( "MeganServerCredentials" , new String [ 0 ] ) ; for ( String line : credentials ) { String [ ] tokens = line . split ( "::" ) ; if ( tokens . length > 0 ) { server2Credentials . put ( tokens [ 0 ] , new Pair < > ( tokens . length > 1 ? tokens [ 1 ] : "" , Basic . toString ( Base64 . decodeBase64 ( ( tokens . length > 2 ? tokens [ 2 ] : "" ) ) ) ) ) ; } } loaded = true ; } }
target:  load all saved credentials from properties