private void checkModel(Simulator simulator, ModelConfig model)
throws ModelPathNotValidException
{
if (model == null)
{
throw new ModelPathNotValidException(simulator, "null");
} else if (!ctModel.isValid())
{
throw new ModelPathNotValidException(simulator, "null");
}
}