final String path = pathNode.isDefined() ? pathNode.asString() : null;
final ModelNode relativeToNode = FileDataStoreResourceDefinition.RELATIVE_TO.resolveModelAttribute(context, model);
final String relativeTo = relativeToNode.isDefined() ? relativeToNode.asString() : null;
final FileTimerPersistence fileTimerPersistence = new FileTimerPersistence(true, path, relativeTo);
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final ServiceName serviceName = TimerPersistence.SERVICE_NAME.append(address.getLastElement().getValue());
newControllers.add(context.getServiceTarget().addService(serviceName, fileTimerPersistence)
.addDependency(Services.JBOSS_SERVICE_MODULE_LOADER, ModuleLoader.class, fileTimerPersistence.getModuleLoader())
.addDependency(PathManagerService.SERVICE_NAME, PathManager.class, fileTimerPersistence.getPathManager())
.addDependency(TransactionManagerService.SERVICE_NAME, TransactionManager.class, fileTimerPersistence.getTransactionManager())
.addDependency(TransactionSynchronizationRegistryService.SERVICE_NAME, TransactionSynchronizationRegistry.class, fileTimerPersistence.getTransactionSynchronizationRegistry())
.install());
}