//
// TODO: maybe using real reflection would be cleaner. If it weren't for the argument for HackishSegmentParser then we could do all this over in the JoshuaConfiguration class instead
final String className = JoshuaConfiguration.segmentFileParserClass;
if (null == className) {
// Use old behavior by default
segmentParser = new HackishSegmentParser(this.startSentenceID);
} else if ("PlainSegmentParser".equals(className)) {
segmentParser = new PlainSegmentParser();
} else if ("HackishSegmentParser".equals(className)) {
segmentParser = new HackishSegmentParser(this.startSentenceID);
} else if ("SAXSegmentParser".equals(className)) {
segmentParser = new SAXSegmentParser();
} else {