public static VFSDeploymentContext getDeploymentContext(final VirtualFile esbArchive) throws Exception
{
VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(esbArchive);
VFSStructuralDeployersImpl structuralDeployers = new VFSStructuralDeployersImpl();
VFSStructureBuilder builder = new VFSStructureBuilder();
structuralDeployers.setStructureBuilder(builder);
StructureDeployer[] deployers = new StructureDeployer[]{new JARStructure()};
for (StructureDeployer deployer : deployers)
{
structuralDeployers.addDeployer(deployer);