return construct(new Constructor(), data);
}
private Object construct(Constructor constructor, String data) {
StreamReader reader = new StreamReader(data);
Parser parser = new ParserImpl(reader);
Resolver resolver = new Resolver();
Composer composer = new Composer(parser, resolver);
constructor.setComposer(composer);
return constructor.getSingleData(Object.class);
}