DeploymentManager mgr = null;
try
{
URI deployURI = parseURI(uri);
mgr = new DeploymentManagerImpl(deployURI, true, userName, password);
}
catch (URISyntaxException e)
{
DeploymentManagerCreationException ex = new DeploymentManagerCreationException("Failed to create DeploymentManagerImpl");
ex.initCause(e);