public class MigrationServiceComponent {
private static Log log = LogFactory.getLog(MigrationServiceComponent.class);
protected void activate(ComponentContext context) {
try {
new Alpha1().migrate();
ManagementPermissionsAdder uiPermissionAdder = new ManagementPermissionsAdder();
context.getBundleContext().addBundleListener(uiPermissionAdder);
Bundle[] bundles = context.getBundleContext().getBundles();
for (Bundle bundle : bundles) {
if (bundle.getState() == Bundle.ACTIVE) {