anchor.diff:  private Application application;
   
   private EntityManager createEntityManager() {
  -	return ((HelloApplication)application).getEntityManagerFactory().createEntityManager();
  +    return ((HelloApplication)application).getEntityManagerFactory().createEntityManager();
   }
   
   @POST
   public Hello hello(Hello request) {
  -	EntityManager entityManager = createEntityManager();
  -	EntityTransaction tx = entityManager.getTransaction();
  -	tx.begin();
  -	
  -	Hello result = entityManager.merge(request);
  -	
  -	entityManager.flush();
  -	tx.commit();
  -	entityManager.close();
  -	
  -	return result;
  +    EntityManager entityManager = createEntityManager();
  +    EntityTransaction tx = entityManager.getTransaction();
  +    tx.begin();
  +    
  +    Hello result = entityManager.merge(request);
  +    
  +    entityManager.flush();
  +    tx.commit();
  +    entityManager.close();
  +    
  +    return result;
   }
   ----
   
  
positive.code: ----
  @ApplicationPath("/app")
  public class HelloApplication extends Application {
  	
  	private final SpearalFactory spearalFactory = new DefaultSpearalFactory();
  	
  	private final EntityManagerFactory entityManagerFactory;
  	
  	public HelloApplication() {
  		EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("hello-pu");
  		SpearalConfigurator.init(spearalFactory, entityManagerFactory);
  		this.entityManagerFactory = new EntityManagerFactoryWrapper(entityManagerFactory);
  	}
  	
  	public SpearalFactory getSpearalFactory() {
  		return spearalFactory;
  	}
  	
  	public EntityManagerFactory getEntityManagerFactory() {
  		return entityManagerFactory;
  	}
  }
  ----
  
  
negative.code: EntityManager entityManager;
  
  public Person save(Person person) {
      return new EntityManagerWrapper(entityManager).merge(person);
  }
  ----
  
  