public void addKeyTransactions ( Collection < KeyTransaction > keyTransactions ) { for ( KeyTransaction keyTransaction : keyTransactions ) { // Add the transaction to any applications it is associated with long applicationId = keyTransaction . getLinks ( ) . getApplication ( ) ; Application application = applications . get ( applicationId ) ; if ( application != null ) keyTransactions ( applicationId ) . add ( keyTransaction ) ; else logger . severe ( String . format ( "Unable to find application for key transaction '%s': %d" , keyTransaction . getName ( ) , applicationId ) ) ; } }
Adds the key transactions to the applications for the account .