if (service == null) {
throw new RuntimeException("we cannot find service["
+ serviceName + "].");
}
ServiceProvider serviceProvider = service
.getProviderByVersion(version);
Class<?> processorClass = serviceProvider.getProcessorClass();
Object processor = processorClass.newInstance();
Object[] args = request.getArgs();
MethodAccess method = serviceProvider.getMethodAccess();
int methodIndex = method.getIndex(methodName,request.getArgsTypes());
result = method.invoke(processor, methodIndex, args);
} catch (InstantiationException e) {
logger.error(e.getMessage(), e);
throw new RuntimeException(e);