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