anchor.diff:  ----
   @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;
  -	}
  +    
  +    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;
  +    }
   }
   ----
   
  
positive.code: [source,java]
  ----
  public class HelloApplication extends Application {
  	
      private final SpearalFactory spearalFactory;
  	
      private final EntityManagerFactory entityManagerFactory;
  	
      public HelloApplication() {
      	spearalFactory = new DefaultSpearalFactory();
          entityManagerFactory = Persistence.createEntityManagerFactory("hello-pu");
          SpearalConfigurator.init(spearalFactory, entityManagerFactory);
          ...
  
negative.code: private Application application;
  
  private EntityManager 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;
  }
  ----
  
  