final RegexMatcherFactory matcherFactory = new RegexMatcherFactoryImpl();
final NodeMaps nodeMaps = new NodeMapsImpl(parsersFactory.getUriReferenceParser(),
parsersFactory.getBlankNodeParser(), parsersFactory.getLiteralParser());
final RegexTripleParser parser = new RegexTripleParserImpl(matcherFactory, newGraph.getTripleFactory(),
nodeMaps);
final TripleParser tripleParser = new TripleParserImpl(matcherFactory, parsersFactory.getBlankNodeParser(),
parser);
return new NTriplesParser(new CommentsParserImpl(matcherFactory), new TriplesParserImpl(tripleParser));
}