throw new Exception("Neither " + startCls + " nor one of their superclasses (like" + cls + ")" + " has a _Stub");
return null;
private Class findStubSkelClass(Class startCls) throws Exception {	Class cls = startCls;	while (true) {		try {			String stubClassname = cls.getName() + "_Stub";			ClassLoader cl = cls.getClassLoader();			Class scls = cl == null ? Class.forName(stubClassname)						: cl.loadClass(stubClassname);			return cls; // found it		} catch (ClassNotFoundException e) {			Class superCls = cls.getSuperclass();			if (superCls == null 				|| superCls == java.rmi.server.UnicastRemoteObject.class) 			{				throw new Exception("Neither " + startCls 					+ " nor one of their superclasses (like" + cls + ")" 					+ " has a _Stub");			}			cls = superCls;		}	}}