public static Writable getWritable(final byte[] bytes, final Writable w) throws IOException {
    return getWritable(bytes, 0, bytes.length, w);
  }
Set bytes into the passed Writable by calling its
{@link Writable#readFields(java.io.DataInput)}.
@param bytes serialized bytes
@param w     An empty Writable (usually made by calling the null-arg constructor).
@return The passed Writable after its readFields has been called fed by the passed
        <code>bytes</code> array or IllegalArgumentException if passed null or an empty
        <code>bytes</code> array.
@throws IOException e
hbase-client/src/main/java/org/apache/hadoop/hbase/util/Writables.java