switch (c.getCondition()) {
case url:
condition = new UrlCondition(c.getExpression());
break;
case notUrl:
condition = new NotUrlCondition(c.getExpression());
break;
case javascript:
condition = new JavaScriptCondition(c.getExpression());
break;
case regex: