for (FieldCondition condition : fieldConditions) {
String name = condition.getPropertyName();
methodScope.startLine("{\n");
methodScope.startLine(" Object value = input.get(\"" + name + "\");\n");
methodScope.startLine(" boolean hasValue;\n");
methodScope.startLine(" if (value == null) {\n");
methodScope.startLine(" hasValue = input.containsKey(\"" + name + "\");\n");
methodScope.startLine(" } else {\n");
methodScope.startLine(" hasValue = true;\n");
methodScope.startLine(" }\n");
condition.writeCheckJava(methodScope, "value", "hasValue", "conditionRes");