stub = (RemoteStub)getHelperClass(cls, "_Stub");
Class expCls; try {  expCls = findStubSkelClass(cls); } catch (Exception ex) { throw new RemoteException("can not find stubs for class: " + cls, ex); }  stub = (RemoteStub)getHelperClass(expCls, "_Stub");
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();		stub = (RemoteStub)getHelperClass(cls, "_Stub");		if (stub == null) {			throw new RemoteException("failed to export: " + cls);		}		// Find and install the skeleton (if there is one)		skel = (Skeleton)getHelperClass(cls, "_Skel");		// Build hash of methods which may be called.		buildMethodHash(obj.getClass(), true);		// Export it.		UnicastServer.exportObject(this);	}	return (stub);}