private EJBBusinessMethod getEJBBusinessMethod(EJBMethodDescription method, ClassLoader classLoader) throws ClassNotFoundException {
String methodName = method.getMethodName();
String[] types = method.getMethodParams();
if (types == null || types.length == 0) {
return new EJBBusinessMethod(methodName, new Class<?>[0]);
}
Class<?>[] paramTypes = new Class<?>[types.length];
int i = 0;
for (String type : types) {
paramTypes[i++] = PrimitiveClassLoaderUtil.loadClass(type.toString(), classLoader);
}
return new EJBBusinessMethod(methodName, paramTypes);
}