@Override
  public boolean hasCellBlockSupport() {
    return this.codec != null;
  }
Encapsulate the ugly casting and RuntimeException conversion in private method.
@return Codec to use on this client.
hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AbstractRpcClient.java