}
;
// Store underlying facet configuration
token = parser.nextToken(); // move the start of object...
ByteArrayOutputStream memstream = new ByteArrayOutputStream(20);
XContentGenerator generator = new JsonXContentGenerator(jsonFactory.createJsonGenerator(memstream));
XContentHelper.copyCurrentStructure(generator, parser);
generator.close();
memstream.close();
internalConfig = memstream.toByteArray(); // now we're at the end of the underlying config.
while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT); // eat everything else under the "facet" clause