Parser parser = ParserFactory.createParser();
StringWriter out = new StringWriter();
SerializationDocumentHandler serializer = new SerializationDocumentHandler(out);
OrientationFilter filter = new OrientationFilter(serializer, true);
parser.setDocumentHandler(filter);
parser.parseStyleSheet(new InputSource(new StringReader(ltSheet)));
out.close();
String actualRTSheet = out.toString();
StylesheetObject expected = StylesheetObject.createStylesheet(expectedRTSheet);
StylesheetObject actual = StylesheetObject.createStylesheet(actualRTSheet);
if (!expected.equals(actual))