Source:
private static void registerTransformers_EAP_7_0_0(SubsystemRegistration subsystemRegistration) { final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance(); builder.addChildResource(UndertowExtension.HTTPS_LISTENER_PATH) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.UNDEFINED, Constants.SECURITY_REALM) .addRejectCheck(RejectAttributeChecker.DEFINED, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11.getName()) .end(); builder.addChildResource(UndertowExtension.HTTP_LISTENER_PATH) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.DEFINED, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11.getName()) .end(); builder.addChildResource(UndertowExtension.PATH_SERVLET_CONTAINER) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.DEFINED, Constants.DISABLE_FILE_WATCH_SERVICE) .end(); builder.addChildResource(UndertowExtension.PATH_FILTERS) .addChildResource(PathElement.pathElement(Constants.MOD_CLUSTER)) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.DEFINED, Constants.SSL_CONTEXT) .end(); builder.addChildResource(UndertowExtension.PATH_HANDLERS) .addChildResource(PathElement.pathElement(Constants.REVERSE_PROXY)) .addChildResource(PathElement.pathElement(Constants.HOST)) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.DEFINED, Constants.SSL_CONTEXT) .end(); builder.discardChildResource(PathElement.pathElement(Constants.APPLICATION_SECURITY_DOMAIN)); TransformationDescription.Tools.register(builder.build(), subsystemRegistration, UndertowExtension.MODEL_VERSION_EAP7_0_0); }

Target:
private static void registerTransformers_EAP_7_0_0(SubsystemRegistration subsystemRegistration) { final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance(); builder.addChildResource(UndertowExtension.HTTPS_LISTENER_PATH) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.UNDEFINED, Constants.SECURITY_REALM) .setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(false)), HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11.getName()) .addRejectCheck(RejectAttributeChecker.DEFINED, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11.getName()) .end(); builder.addChildResource(UndertowExtension.HTTP_LISTENER_PATH) .getAttributeBuilder() .setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(false)), HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11.getName()) .addRejectCheck(RejectAttributeChecker.DEFINED, HttpListenerResourceDefinition.REQUIRE_HOST_HTTP11.getName()) .end(); builder.addChildResource(UndertowExtension.PATH_SERVLET_CONTAINER) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.DEFINED, Constants.DISABLE_FILE_WATCH_SERVICE) .end(); builder.addChildResource(UndertowExtension.PATH_FILTERS) .addChildResource(PathElement.pathElement(Constants.MOD_CLUSTER)) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.DEFINED, Constants.SSL_CONTEXT) .end(); builder.addChildResource(UndertowExtension.PATH_HANDLERS) .addChildResource(PathElement.pathElement(Constants.REVERSE_PROXY)) .addChildResource(PathElement.pathElement(Constants.HOST)) .getAttributeBuilder() .addRejectCheck(RejectAttributeChecker.DEFINED, Constants.SSL_CONTEXT) .end(); builder.discardChildResource(PathElement.pathElement(Constants.APPLICATION_SECURITY_DOMAIN)); TransformationDescription.Tools.register(builder.build(), subsystemRegistration, UndertowExtension.MODEL_VERSION_EAP7_0_0); }