if (interfce == null) throw new IllegalStateException("Interface argument cannot me null.");
ThreadContext threadContext = ThreadContext.getThreadContext();
BeanContext di = threadContext.getBeanContext();
InterfaceType interfaceType = di.getInterfaceType(interfce);
if (interfaceType == null){
throw new IllegalStateException("Component has no such interface: " + interfce.getName());
}
if (!interfaceType.isBusiness()) {
throw new IllegalStateException("Interface is not a business interface for this bean: " + interfce.getName());
}
try {
EjbObjectProxyHandler handler;