private void validateDomain(String domain)
{
File domainFolder = new File(MuleContainerBootstrapUtils.getMuleDomainsDir(), domain);
if (!(domainFolder.exists() && domainFolder.isDirectory()))
{
throw new DeploymentException(CoreMessages.createStaticMessage(String.format("Domain %s does not exists", domain)));
}
}