private static <T extends RocksObject> T checkInvalid(final T opts) {
        if (!opts.isOwningHandle()) {
            throw new IllegalStateException(
                "the instance of options [" + opts
                        + "] has been released, calling any of its functions will lead to undefined behavior.");
        }
        return opts;
    }
Get a new default TableFormatConfig or a copy of the exist ableFormatConfig.

@param  groupId raft group id
@param cls the key of TableFormatConfig
@return new default TableFormatConfig or a copy of the exist TableFormatConfig
jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java