protected VFSDeployment createDeployment(String name) throws Exception
{
URL url = getClass().getProtectionDomain().getCodeSource().getLocation();
VirtualFile file = VFS.getRoot(url);
VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(file);
DeploymentFactory factory = new DeploymentFactory();
factory.addContext(deployment, "");
((AbstractDeployment) deployment).setName(name);
return deployment;
}