*/
public static void deployXmlResource(String resource)
{
try
{
BeanXMLDeployer deployer = new BeanXMLDeployer(kernel);
URL bootstrap = Thread.currentThread().getContextClassLoader().getResource(resource);
if (bootstrap == null)
throw new RuntimeException("Cannot find " + resource);
KernelDeployment deployment = deployer.deploy(bootstrap);
deployments.add(0, deployment);
deployer.validate();
}
catch (Throwable throwable)
{
throw new RuntimeException(throwable);
}