fix the way to create entity manager in 
system.context.JavaPersistenceContext.java