migrate ejb-core/statistic use ServiceProvider or @Inject