private static < T > void foreach ( T [ ] arguments , CallHandler < T > handler , CallInfo callInfo ) { if ( arguments == null || arguments . length == 0 ) { throw new InvalidOperationException ( "Empty or null array!" ) ; } for ( T argument : arguments ) { handler . action ( callInfo , argument ) ; } }
Utility method to deal with facade methods that accept variable length arguments .