* @throws com.sun.enterprise.module.bootstrap.BootException
* @throws java.net.URISyntaxException
*/
private static ServiceLocator prepareHabitat(
final ClassLoader loader) {
ServiceLocator serviceLocator = ServiceLocatorFactory.getInstance().create("default");
habitat = serviceLocator;
try {
HK2Populator.populate(serviceLocator, new ClasspathDescriptorFileFinder(loader), null);