reformat source code
add method for creating entityManager via plugin instance