return kernel;
}
public static DeploymentManager getDeploymentManager(PortletRequest request) {
Kernel kernel = getKernel();
DeploymentFactory factory = new DeploymentFactoryWithKernel(kernel);
try {
return factory.getDeploymentManager("deployer:geronimo:inVM", null, null);
} catch (DeploymentManagerCreationException e) {
log.error(e.getMessage(), e);
return null;
}
}