KernelController controller = kernel.getController();
metaData.setClassLoaderName(loaderName);
ObjectName name = metaData.getObjectName();
// Install the context to the configured level
ServiceControllerContext context = new ServiceControllerContext(this, metaData);
try
{
doInstall(controller, context);
doChange(controller, context, ControllerState.CONFIGURED, "configure");
return context.getObjectName();
}
catch (Throwable t)
{
throw rethrow("Error during install " + name, t);
}