throw new IllegalArgumentException("URI for DeploymentManager should not be null");
}
DeploymentManager manager = null;
for(Iterator i = deploymentFactories.iterator(); i.hasNext();) {
DeploymentFactory factory = (DeploymentFactory)i.next();
if(factory.handlesURI(uri)) {
manager = factory.getDeploymentManager(uri, username, password);
if(manager != null) {
return manager;
}
}