private final ThreadLocal<Boolean> active = new ThreadLocal<Boolean>();
public void before(@Observes final BeforeStep event) {
final MetadataExtractor extractor = new MetadataExtractor(event.getTestClass());
final boolean isActive = new PersistenceExtensionEnabler(extractor).shouldPersistenceExtensionBeActivated();
active.set(isActive);
if (isActive) {
final PersistenceConfiguration persistenceConfiguration = configurationInstance.get();
persistenceExtensionFeatureResolverProvider.set(new PersistenceExtensionFeatureResolver(event.getTestMethod(), extractor, persistenceConfiguration));