GlassFish glassFish = createGlassFish(gfKernel, habitat, gfProps.getProperties());
gfs.add(glassFish);
getBundleContext().registerService(GlassFish.class.getName(), glassFish, gfProps.getProperties());
return glassFish;
} catch (BootException ex) {
throw new GlassFishException(ex);
} catch (InterruptedException ex) {
throw new GlassFishException(ex);
}
}