void updateBPD ( HashMap < String , String > result ) { log . debug ( "extracting BPD from results" ) ; HashMap < String , String > newBPD = new HashMap <> ( ) ; result . keySet ( ) . forEach ( key -> { if ( key . startsWith ( "BPD." ) ) { newBPD . put ( key . substring ( ( "BPD." ) . length ( ) ) , result . get ( key ) ) ; } } ) ; if ( newBPD . size ( ) != 0 ) { newBPD . put ( BPD_KEY_HBCIVERSION , passport . getHBCIVersion ( ) ) ; newBPD . put ( BPD_KEY_LASTUPDATE , String . valueOf ( System . currentTimeMillis ( ) ) ) ; passport . setBPD ( newBPD ) ; log . info ( "installed new BPD with version " + passport . getBPDVersion ( ) ) ; passport . getCallback ( ) . status ( HBCICallback . STATUS_INST_BPD_INIT_DONE , passport . getBPD ( ) ) ; } }
gets the BPD out of the result and store it in the passport field