log.trace("Parsing " + url);
long start = System.currentTimeMillis();
final Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
KernelDeployment deployment = (KernelDeployment) unmarshaller.unmarshal(url.toString(), schemaBinding);
if (deployment == null)
throw new RuntimeException("The xml " + url + " is not well formed!");
deployment.setName(url.toString());
long now = System.currentTimeMillis();
log.debug("Parsing " + url + " took " + (now -start) + " milliseconds");
if (trace)
log.trace("Deploying " + deployment);
deploy(deployment);
now = System.currentTimeMillis();
log.debug("Deploying " + url + " took " + (now -start) + " milliseconds");
if (trace)
log.trace("Deployed " + deployment.getInstalledContexts());
return deployment;
}