public class LocalSRXSentenceTokenizer implements SentenceTokenizer {
private final SrxDocument srxDocument;
private final Language language;
private String parCode;
public LocalSRXSentenceTokenizer(Language language, String srxInClassPath) {
<BUG>this.language = Objects.requireNonNull(language);
InputStream stream = this.getClass().getResourceAsStream(srxInClassPath);

if (stream == null) {
throw new RuntimeException("Could not find SRX file in classpath: " + srxInClassPath);
}
this.srxDocument = SrxTools.createSrxDocument(stream);  // will close the stream on its own</BUG>
setSingleLineBreaksMarksParagraph(false);

public class LocalSRXSentenceTokenizer implements SentenceTokenizer {
private final SrxDocument srxDocument;
private final Language language;
private String parCode;
public LocalSRXSentenceTokenizer(Language language, String srxInClassPath) {
this.language = Objects.requireNonNull(language);
try {
InputStream stream = Tools.getStream(srxInClassPath);
this.srxDocument = SrxTools.createSrxDocument(stream);  // will close the stream on its own
} catch (IOException e) {
throw new RuntimeException(e);
