ContainerContext containerContext = getManager().getContext(ContainerContext.class);
DeploymentContext deploymentContext = getManager().getContext(DeploymentContext.class);
try
{
deploymentContext.activate(deploymentX);
deploymentContext.getObjectStore().add(contextualType, innerType);
deploymentContext.deactivate();
/*
* deploymentZ is left active and should be handled as 'current'.