code: protected void checkVersion(long clientVersion) throws IOException {
      if (mServiceVersion == Constants.UNKNOWN_SERVICE_VERSION) {
        mServiceVersion = getRemoteServiceVersion();
        if (mServiceVersion != clientVersion) {
          throw new IOException(ExceptionMessage.INCOMPATIBLE_VERSION.getMessage(getServiceName(),
              clientVersion, mServiceVersion));
        }
      }
    }
docs: Checks that the service version is compatible with the client.
  
  @param clientVersion the client version