// Do not invoke static initializer before checking if this class can be
// legally invoked
Class<?> requestClass = Class.forName(reqClassName, false,
this.getClass().getClassLoader());
securityProvider.checkClass(requestClass);
Service domainClassAnnotation = requestClass.getAnnotation(Service.class);
if (domainClassAnnotation != null) {
Class<?> domainClass = domainClassAnnotation.value();
Method requestMethod = findMethod(requestClass, domainMethodName);
Method domainMethod = findMethod(domainClass, domainMethodName);
boolean isInstance = (requestMethod.getAnnotation(Instance.class) != null);
if (requestMethod != null && domainMethod != null) {
if (isInstance == Modifier.isStatic(domainMethod.getModifiers())) {