// Remove all previously-added deployables from further MainDeployer processing
final Iterator<Entry<Deployable, Deployment>> it = deploymentsToBeAdded.entrySet().iterator();
while (it.hasNext())
{
final Entry<Deployable, Deployment> next = it.next();
final Deployable thisDeployable = next.getKey();
try
{
mainDeployer.removeDeployment(deploymentsToBeAdded.get(thisDeployable));
}
catch (org.jboss.deployers.spi.DeploymentException e)