private void enhanceCommandArray(IAgentCommand[] startupCommandAry) throws BadCompletedRequestListener {
		if (getTraceWriter().getTraceFilterExt() instanceof IncludeAnyOfTheseEventsFilterExt) {
			IncludeAnyOfTheseEventsFilterExt myFilter =  (IncludeAnyOfTheseEventsFilterExt) getTraceWriter().getTraceFilterExt();
			ClassInstrumentationCommand cic = new ClassInstrumentationCommand();
			cic.setIncludeClassRegEx(myFilter.getDelimitedListOfAllClasses() );
			
			if ( getCommandArray() == null) {
				this.setCommandArray(new IAgentCommand[]{});
			}
			//Expand by one 
			IAgentCommand[] tmp = Arrays.copyOf(getCommandArray(), getCommandArray().length+1);
			tmp[tmp.length-1] = cic;
			this.setCommandArray(tmp);
			
		}
	}
private void enhanceCommandArray ( IAgentCommand [ ] startupCommandAry ) throws BadCompletedRequestListener { if ( getTraceWriter ( ) . getTraceFilterExt ( ) instanceof IncludeAnyOfTheseEventsFilterExt ) { IncludeAnyOfTheseEventsFilterExt myFilter = ( IncludeAnyOfTheseEventsFilterExt ) getTraceWriter ( ) . getTraceFilterExt ( ) ; ClassInstrumentationCommand cic = new ClassInstrumentationCommand ( ) ; cic . setIncludeClassRegEx ( myFilter . getDelimitedListOfAllClasses ( ) ) ; if ( getCommandArray ( ) == null ) { this . setCommandArray ( new IAgentCommand [ ] { } ) ; } IAgentCommand [ ] tmp = Arrays . copyOf ( getCommandArray ( ) , getCommandArray ( ) . length + 1 ) ; tmp [ tmp . length - 1 ] = cic ; this . setCommandArray ( tmp ) ; } }
the headless inTrace client aims to allow the user to have method-level granularity,
when deciding what events they want to see.
This makes things complicated, because the InTrace server agent only supports class granularity.
This method makes it easy for the consumer to place there preferences in one place
to specify their instrumentation preferences.
NOTE:  currently there is no way for the consumer of this API to distinguish
between two overloaded methods.  The InTrace server agent doesn't provide enough information.
@param startupCommandAry
@throws BadCompletedRequestListener