public static RowMutations of(List<? extends Mutation> mutations) throws IOException {
    if (CollectionUtils.isEmpty(mutations)) {
      throw new IllegalArgumentException("Cannot instantiate a RowMutations by empty list");
    }
    return new RowMutations(mutations.get(0).getRow(), mutations.size()).add(mutations);
  }
Create a {@link RowMutations} with the specified mutations.
@param mutations the mutations to send
@throws IOException if any row in mutations is different to another
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RowMutations.java