constructorParamTypes[i-1] = cmdList.get(i).getClass();
}
Object[] args = cmdList.subList(1, cmdList.size() ).toArray();
Command cmd = (Command) cls.getDeclaredConstructors()[0].newInstance(args);
cmd.setSession( session );
ksession.insert( cmd );
ksession.fireAllRules();
} catch ( Exception e ) {
e.printStackTrace();
session.getChannels().get( "output" ).send( "Unable to Execute Command: " + cmdList );