}
final FOraySession session = FOraySpecific.makeFOraySession(
configuration);
FOrayDocument document = null;
if (xsl == null) {
InputSource inputSource = null;
inputSource = new InputSource(xmlFile.toURI().toURL().openStream());
document = new FOrayDocument(session, inputSource, null);
} else {
document = new FOrayDocument(session, xmlFile.toURI().toURL(),
URLFactory.createURL(this.baseDir + "/" + xsl));
}
String outname = xmlFile.getName();