Its interesting because we do in fact do this for the EE EMF Builder. See org.hibernate.jpa.boot.internal.PersistenceUnitInfoDescriptor#pushClassTransformer and its use while building an EMF for details.