Fixed start order bug and import package for JPA 2.1