Map<Method, List<String>> methodParameters = new HashMap<Method, List<String>>();
try {
ClassReader reader = AsmParameterNameLoader.createClassReader(clazz);
AsmParameterNameLoader.AllParameterNamesDiscoveringVisitor visitor = new AsmParameterNameLoader.AllParameterNamesDiscoveringVisitor(clazz, methodName);
reader.accept(visitor, 0);
Map exceptions = visitor.getExceptions();
if (exceptions.size() == 1) {
throw new OpenEJBRuntimeException((Exception) exceptions.values().iterator().next());
}