throws OperationFailedException {
final HiLoKeyGeneratorFactory factory = new HiLoKeyGeneratorFactory();
ModelNode node;
if ((node = HiLoKeyGeneratorResourceDefinition.BLOCK_SIZE.resolveModelAttribute(context, model)).isDefined()) {
factory.setBlockSize(node.asLong());
}
if ((node = HiLoKeyGeneratorResourceDefinition.CREATE_TABLE.resolveModelAttribute(context, model)).isDefined()) {
factory.setCreateTable(node.asBoolean());
}
if ((node = HiLoKeyGeneratorResourceDefinition.CREATE_TABLE_DDL.resolveModelAttribute(context, model)).isDefined()) {