if(delegate != null) return delegate.toStub(obj); else return null;
return delegate.toStub(targetImpl);
  public static Remote toStub(Remote obj)    throws NoSuchObjectException  {    if(delegate != null)      return delegate.toStub(obj);    else      return null;  }