public static XMLStreamReader createReader(Reader reader, JSONConfiguration config, String rootName, boolean readingList) {
switch (config.getNotation()) {
case NATURAL:
try {
if(!readingList) {
return new Jackson2StaxReader(JacksonRootAddingParser.createRootAddingParser(new JsonFactory().createJsonParser(reader), rootName));
} else {
return new Jackson2StaxReader(
JacksonRootAddingParser.createRootAddingParser(
JacksonRootAddingParser.createRootAddingParser(new JsonFactory().createJsonParser(reader), rootName)
, "whatever")
);
}