@Override
public Object runMethodInEjbContext(String className, String methodName,
Class<?> argumentTypes[], Object[] args) throws Exception {
try (TxHandler txHandler = new TxHandler(this.tx, true)) {
Class<?> clazz = Class.forName(className);
Object instance = clazz.newInstance();
Method method = clazz.getMethod(methodName, argumentTypes);
Object res = method.invoke(instance, args);
txHandler.commit();
return res;
}
}