public static ClusterId parseFrom(final byte[] bytes) throws DeserializationException {
    if (ProtobufUtil.isPBMagicPrefix(bytes)) {
      int pblen = ProtobufUtil.lengthOfPBMagic();
      ClusterIdProtos.ClusterId.Builder builder = ClusterIdProtos.ClusterId.newBuilder();
      ClusterIdProtos.ClusterId cid = null;
      try {
        ProtobufUtil.mergeFrom(builder, bytes, pblen, bytes.length - pblen);
        cid = builder.build();
      } catch (IOException e) {
        throw new DeserializationException(e);
      }
      return convert(cid);
    } else {
      // Presume it was written out this way, the old way.
      return new ClusterId(Bytes.toString(bytes));
    }
  }
Parse the serialized representation of the {@link ClusterId}
@param bytes A pb serialized {@link ClusterId} instance with pb magic prefix
@return An instance of {@link ClusterId} made from <code>bytes</code>
@see #toByteArray()
hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterId.java