try
{
DeploymentContext context = getTopLevelDeploymentContext(deploymentName);
if (context == null)
return DeploymentStages.NOT_INSTALLED;
DeploymentStage result = deployers.getDeploymentStage(context);
if (result != null)
return result;
else
return DeploymentStages.NOT_INSTALLED;
}