expCls = findStubSkelClass(cls); } catch (Exception ex) { throw new RemoteException("can not find stubs for class: " + cls, ex);
Class expCls = expCls = findStubSkelClass(cls);  if (expCls != null) { stub = (RemoteStub) getHelperClass(expCls, "_Stub");  skel = (Skeleton) getHelperClass(expCls, "_Skel"); }
public RemoteStub exportObject(Remote obj) throws RemoteException {	if (myself == null) {		myself = obj;		// Save it to server manager, to let client calls in the same VM to issue		//  local call		manager.serverobj = obj;		// Find and install the stub		Class cls = obj.getClass();		Class expCls;		try {			// where ist the _Stub? (check superclasses also)			expCls = findStubSkelClass(cls); 		} catch (Exception ex) {			throw new RemoteException("can not find stubs for class: " + cls, ex);		}		stub = (RemoteStub)getHelperClass(expCls, "_Stub");		if (stub == null) {			throw new RemoteException("failed to export: " + cls);		}		// Find and install the skeleton (if there is one)		skel = (Skeleton)getHelperClass(expCls, "_Skel");		// Build hash of methods which may be called.		buildMethodHash(obj.getClass(), true);		// Export it.		UnicastServer.exportObject(this);	}	return (stub);}