*
* @param reader reader from which read the document
* @return initialized SRX document
*/
public SrxDocument parse(Reader reader) {
SrxTransformer transformer = new Srx1Transformer();
Map<String, Object> parameterMap = Collections.emptyMap();
Reader reader2 = transformer.transform(reader, parameterMap);
SrxParser parser2 = new Srx2Parser();
return parser2.parse(reader2);
}