private String taskName = "task.xml"; //Info engine task to be executed.
private IeCollection invokeQueryTask( String taskName, String className)
throws WTException, IEException, IOException
{
IeCollection iecollection = new IeCollection();
Task task = new Task();
task.setTaskURI(taskName);
task.addParam("className", className);
//Invoke a task
task.invoke();
iecollection = task.getVDB();
//return the task results as info engine collection
return iecollection;
}