try {
Class<EvaluatorDefinition> defClass = (Class<EvaluatorDefinition>) this.classloader.loadClass( className );
EvaluatorDefinition def = defClass.newInstance();
addEvaluatorDefinition( def );
} catch ( ClassNotFoundException e ) {
throw new RuntimeDroolsException( "Class not found for evaluator definition: " + className,
e );
} catch ( InstantiationException e ) {
throw new RuntimeDroolsException( "Error instantiating class for evaluator definition: " + className,
e );
} catch ( IllegalAccessException e ) {
throw new RuntimeDroolsException( "Illegal access instantiating class for evaluator definition: " + className,
e );
}
}