if (metadataRepositoryManager.contains(location)) {
return;
}
//Validating the repositories
status = metadataRepositoryManager.validateRepositoryLocation(location, null);
if (!status.isOK()) {
throw ProvisioningException.makeExceptionFromErrorCode(
CompMgtMessages.INVALID_REPO_LOCATION, location);
}