Source:
private static void registerTransformers1_2_1_and_1_3_0(SubsystemRegistration subsystemRegistration, ModelVersion version) { final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance(); builder.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.DEFINED, EJB3SubsystemRootResourceDefinition.DEFAULT_SFSB_PASSIVATION_DISABLED_CACHE); builder.getAttributeBuilder().setDiscard(DiscardAttributeChecker.UNDEFINED, EJB3SubsystemRootResourceDefinition.DEFAULT_SFSB_PASSIVATION_DISABLED_CACHE); builder.getAttributeBuilder().setDiscard(DiscardAttributeChecker.ALWAYS, EJB3SubsystemRootResourceDefinition.LOG_EJB_EXCEPTIONS); builder.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.DEFINED, EJB3SubsystemRootResourceDefinition.DISABLE_DEFAULT_EJB_PERMISSIONS); builder.getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(false)), EJB3SubsystemRootResourceDefinition.DISABLE_DEFAULT_EJB_PERMISSIONS); PassivationStoreResourceDefinition.registerTransformers_1_2_1_and_1_3_0(builder); builder.rejectChildResource(PathElement.pathElement(EJB3SubsystemModel.REMOTING_PROFILE)); if (version.equals(VERSION_1_2_1)) { TimerServiceResourceDefinition.registerTransformers_1_2_0(builder); EJB3RemoteResourceDefinition.registerTransformers_1_2_0(builder); MdbDeliveryGroupResourceDefinition.registerTransformers_1_2_0(builder); } else if (version.equals(VERSION_1_3_0)) { TimerServiceResourceDefinition.registerTransformers_1_3_0(builder); } TransformationDescription.Tools.register(builder.build(), subsystemRegistration, version); }

Target:
private static void registerTransformers1_2_1_and_1_3_0(SubsystemRegistration subsystemRegistration, ModelVersion version) { final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance(); builder.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.DEFINED, EJB3SubsystemRootResourceDefinition.DEFAULT_SFSB_PASSIVATION_DISABLED_CACHE); builder.getAttributeBuilder().setDiscard(DiscardAttributeChecker.UNDEFINED, EJB3SubsystemRootResourceDefinition.DEFAULT_SFSB_PASSIVATION_DISABLED_CACHE); builder.getAttributeBuilder().setDiscard(DiscardAttributeChecker.ALWAYS, EJB3SubsystemRootResourceDefinition.LOG_EJB_EXCEPTIONS); builder.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.DEFINED, EJB3SubsystemRootResourceDefinition.DISABLE_DEFAULT_EJB_PERMISSIONS); builder.getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(new ModelNode(false)), EJB3SubsystemRootResourceDefinition.DISABLE_DEFAULT_EJB_PERMISSIONS); PassivationStoreResourceDefinition.registerTransformers_1_2_1_and_1_3_0(builder); EJB3RemoteResourceDefinition.registerTransformers_1_2_0_and_1_3_0(builder); MdbDeliveryGroupResourceDefinition.registerTransformers_1_2_0_and_1_3_0(builder); builder.rejectChildResource(PathElement.pathElement(EJB3SubsystemModel.REMOTING_PROFILE)); if (version.equals(VERSION_1_2_1)) { TimerServiceResourceDefinition.registerTransformers_1_2_0(builder); } else if (version.equals(VERSION_1_3_0)) { TimerServiceResourceDefinition.registerTransformers_1_3_0(builder); } TransformationDescription.Tools.register(builder.build(), subsystemRegistration, version); }