StringTable inputStringTable = document.getStringTable();
if (inputStringTable != null && inputStringTable.size() > 0) {
outputStringTable = new StringTable();
StringReferenceFactory references = new StringReferenceFactory(
outputStringTable, document.getStringFactory());
resolver = new CopyReferenceResolver(references);
} else {
resolver = new NullReferenceResolver();
}
initialiseSerialisers(resolver);