}
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final String name = address.getLastElement().getValue();
final ServiceTarget serviceTarget = context.getServiceTarget();
try {
final PeriodicRotatingFileHandlerService service = new PeriodicRotatingFileHandlerService();
final ServiceBuilder<Handler> serviceBuilder = serviceTarget.addService(LogServices.handlerName(name), service);
if (operation.hasDefined(FILE)) {
final HandlerFileService fileService = new HandlerFileService(operation.get(FILE, PATH).asString());
final ServiceBuilder<?> fileBuilder = serviceTarget.addService(LogServices.handlerFileName(name), fileService);
if (operation.get(FILE).hasDefined(CommonAttributes.RELATIVE_TO)) {
fileBuilder.addDependency(AbstractPathService.pathNameOf(operation.get(FILE, RELATIVE_TO).asString()), String.class, fileService.getRelativeToInjector());
}
fileBuilder.setInitialMode(ServiceController.Mode.ACTIVE).install();
serviceBuilder.addDependency(LogServices.handlerFileName(name), String.class, service.getFileNameInjector());