The PersistenceUnitService that we are starting, depends on the JPAService.  The above code is code running after calling ServiceBuilder.install() for the PersistenceUnitService.

If this is wrong, the JPAService.createManagementStatisticsResource() could be changed to static.