private static FailedOperationTransformationConfig createFailedOperationTransformationConfig(ModelVersion version) { FailedOperationTransformationConfig config = new FailedOperationTransformationConfig(); PathAddress subsystemAddress = PathAddress.pathAddress(JGroupsSubsystemResourceDefinition.PATH); if (JGroupsModel.VERSION_3_0_0.requiresTransformation(version)) { // Channel resource in a typical configuration would be not rejected, but since we don't have infinispan subsystem setup (because // that would create a cyclical dependency) it has to be rejected in this subsystem test config.addFailedAttribute(subsystemAddress.append(ChannelResourceDefinition.WILDCARD_PATH), FailedOperationTransformationConfig.REJECTED_RESOURCE); config.addFailedAttribute(subsystemAddress.append(StackResourceDefinition.WILDCARD_PATH).append(TransportResourceDefinition.WILDCARD_PATH).append(ThreadPoolResourceDefinition.WILDCARD_PATH), FailedOperationTransformationConfig.REJECTED_RESOURCE); } if (JGroupsModel.VERSION_2_0_0.requiresTransformation(version)) { PathAddress stackAddress = subsystemAddress.append(StackResourceDefinition.WILDCARD_PATH); PathAddress relayAddress = stackAddress.append(RelayResourceDefinition.PATH); config.addFailedAttribute(relayAddress, FailedOperationTransformationConfig.REJECTED_RESOURCE); config.addFailedAttribute(relayAddress.append(RemoteSiteResourceDefinition.WILDCARD_PATH), FailedOperationTransformationConfig.REJECTED_RESOURCE); } return config; }