.setSubsystemXml(subsystemXml);
final PathAddress subsystemAddress = PathAddress.pathAddress(PathElement.pathElement(SUBSYSTEM, getMainSubsystemName()));
// Add legacy subsystems
LegacyKernelServicesInitializer init = builder.createLegacyKernelServicesBuilder(null, controllerVersion, modelVersion)
.addMavenResourceURL("org.jboss.as:jboss-as-transactions:" + controllerVersion.getMavenGavVersion())
.configureReverseControllerCheck(AdditionalInitialization.MANAGEMENT, ADD_REMOVED_HORNETQ_STORE_ENABLE_ASYNC_IO, RemoveProcessUUIDOperationFixer.INSTANCE)
.excludeFromParent(SingleClassFilter.createFilter(TransactionLogger.class));
if (controllerVersion == ModelTestControllerVersion.EAP_6_0_0) {
//EAP_6_0_0 does not have OperationFixer, so disable the validation of the ADD operation
init.addOperationValidationExclude(ADD, subsystemAddress);
} else {
init.addOperationValidationFixer(ADD, subsystemAddress, RemoveProcessUUIDOperationFixer.INSTANCE)
.addSingleChildFirstClass(RemoveProcessUUIDOperationFixer.class);
}
KernelServices mainServices = builder.build();