You need to register transformer from current version --> previous.
in case of EE subsystem there is already few transformers, all you need to do is add few more reject checks.
see EeExtension#registerTransformers

you probably need something like this:
```java
.addRejectCheck(RejectAttributeChecker.DEFINED, EJB_ANNOTATION_PROPERTY_REPLACEMENT)
.setDiscard(DiscardAttributeChecker.UNDEFINED, EJB_ANNOTATION_PROPERTY_REPLACEMENT)
```