Source:
<code>private void processValues() { JsonNodeFactory factory = new JsonNodeFactory(false); JsonFactory jsonFactory = new JsonFactory(); ObjectMapper objectMapper = new ObjectMapper(); if (this.paramsHash == this.valuesMap.hashCode()) { return; } <START> this.JsonParams.clear(); <END> try { for (Map.Entry<String, Object> param : this.valuesMap.entrySet()) { StringWriter stringWriter = new StringWriter(); JsonGenerator generator = jsonFactory.createGenerator(stringWriter); ObjectNode parameter = factory.objectNode(); String name = param.getKey(); Object value = param.getValue(); if (value instanceof Integer) { parameter.put("name", name); parameter.put("value", (Integer)value); } else if (value instanceof String) { parameter.put("name", name); parameter.put("value", (String)value); } else if (value instanceof Float) { parameter.put("name", name); parameter.put("value", (Float)value); } else if (value instanceof Double) { parameter.put("name", name); parameter.put("value", (Double)value); } else if (value instanceof Boolean) { parameter.put("name", name); parameter.put("value", (Boolean)value); } else if (value instanceof Long) { parameter.put("name", name); parameter.put("value", (Long)value); } else { throw new DriverException("Parameter : " + value + ", is not in a valid format to be sent as Gremlin parameter."); } objectMapper.writeTree(generator, parameter); this.JsonParams.add(stringWriter.toString()); } this.paramsHash = this.valuesMap.hashCode(); } catch (IOException e) { throw new DriverException("Some values are not in a compatible type to be serialized in a Gremlin Query."); } }</code><technical_language>jsonParams is in configureAndGetWrappedStatement, is returned processValues need instance member</technical_language>

Target:
private void processValues() { if (this.paramsHash == this.valuesMap.hashCode()) { return; } JsonNodeFactory factory = new JsonNodeFactory(false); JsonFactory jsonFactory = new JsonFactory(); this.jsonParams.clear(); try { for (Map.Entry<String, Object> param : this.valuesMap.entrySet()) { StringWriter stringWriter = new StringWriter(); JsonGenerator generator = jsonFactory.createGenerator(stringWriter); ObjectNode parameter = factory.objectNode(); String name = param.getKey(); Object value = param.getValue(); if (value instanceof Integer) { parameter.put("name", name); parameter.put("value", (Integer) value); } else if (value instanceof String) { parameter.put("name", name); parameter.put("value", (String) value); } else if (value instanceof Float) { parameter.put("name", name); parameter.put("value", (Float) value); } else if (value instanceof Double) { parameter.put("name", name); parameter.put("value", (Double) value); } else if (value instanceof Boolean) { parameter.put("name", name); parameter.put("value", (Boolean) value); } else if (value instanceof Long) { parameter.put("name", name); parameter.put("value", (Long) value); } else { throw new DriverException("Parameter : " + value + ", is not in a valid format to be sent as Gremlin parameter."); } GraphSession.objectMapper.writeTree(generator, parameter); this.jsonParams.add(stringWriter.toString()); } this.paramsHash = this.valuesMap.hashCode(); } catch (IOException e) { throw new DriverException("Some values are not in a compatible type to be serialized in a Gremlin Query."); } }