private int doBeforeRun ( Map < String , Command > references ) throws Exception { if ( status == Command . INITIALIZED ) { for ( int i = 0 ; i < commands . size ( ) ; ++ i ) { Command cmd = commands . elementAt ( i ) ; // XXX is this correct? if ( cmd . isExecutable ( ) ) { arguments . add ( cmd ) ; } else { operations . add ( cmd ) ; } } return Command . CHILDREN_FILTERED ; } return status ; }
put command in one of two collections - arguments or operations