final boolean exclusive = DivertDefinition.EXCLUSIVE.resolveModelAttribute(context, model).asBoolean();
final ModelNode filterNode = CommonAttributes.FILTER.resolveModelAttribute(context, model);
final String filter = filterNode.isDefined() ? filterNode.asString() : null;
final ModelNode transformerNode = CommonAttributes.TRANSFORMER_CLASS_NAME.resolveModelAttribute(context, model);
final String transformerClassName = transformerNode.isDefined() ? transformerNode.asString() : null;
return new DivertConfiguration(name, routingName, address, forwardingAddress, exclusive, filter, transformerClassName);
}