public AsnOperationHandler makeHandler(AsnContext context)
throws ClassNotFoundException, InstantiationException, IllegalAccessException {
String className = Val.chkStr(this.getHandlerClass());
if (className.length() == 0) {
String msg = "The configured operation handlerClass was empty";
throw new ConfigurationException(msg);
} else {
Class<?> cls = Class.forName(className);
Object obj = cls.newInstance();
if (obj instanceof AsnOperationHandler) {
return (AsnOperationHandler)obj;
} else {
String msg = "The configured operation handlerClass is invalid: "+ className;
throw new ConfigurationException(msg);
}
}
}