.setDiscard(DiscardAttributeChecker.ALWAYS, EJB3SubsystemModel.DEFAULT_DATA_STORE)//this is ok, as default-data-store only has any sense with new model, but it is always set!
.end();
timerService.discardOperations(ModelDescriptionConstants.ADD);
timerService.setCustomResourceTransformer(dataStoreTransformer);
timerService.rejectChildResource(EJB3SubsystemModel.DATABASE_DATA_STORE_PATH);
ResourceTransformationDescriptionBuilder fileDataStore = timerService.addChildRedirection(EJB3SubsystemModel.FILE_DATA_STORE_PATH, new PathAddressTransformer() {
@Override
public PathAddress transform(PathElement current, Builder builder) {
return builder.getCurrent();
}
});