public void onTaskError(RTask rTask, String error)
 {
     RBrokerStatsHelper.printRTaskResult(rTask, null, error);
 }
        /*
         * RBrokerAsyncListener methods.
         */

        public void onTaskCompleted(RTask rTask, RTaskResult rTaskResult)
        {
            RBrokerStatsHelper.printRTaskResult(rTask, rTaskResult, null);
            Console.WriteLine("onTaskCompleted: " + rTask + ", score " +
                              ((RNumeric)rTaskResult.getGeneratedObjects()[0]).Value);
        }