class MongoDbInMemory {

    public JsonNode getUpdateJson(JsonNode request, boolean isMultiple, VarNameAdapter varNameAdapter)
        throws InvalidParseOperationException {
        final AbstractParser<?> parser;

        if (isMultiple) {
            parser = new UpdateParserMultiple(varNameAdapter);
        } else {
            parser = new UpdateParserSingle(varNameAdapter);
        }

        parser.parse(request);

        return getUpdateJson(parser);
    }

    public  MongoDbInMemory(JsonNode originalDocument, DynamicParserTokens parserTokens);

}