if(segCode.equals("UNE")) {
segmentReader.moveToNextSegment(false);
interchangeContext.mapControlSegment(uneSegment, true);
break;
} else if(segCode.length() > 0) {
ControlBlockHandler handler = interchangeContext.getControlBlockHandler(segCode);
handler.process(interchangeContext);
} else {
throw new EDIParseException("Unexpected end of UN/EDIFACT data stream. If stream was reset (e.g. after read charset was changed), please make sure underlying stream was properly reset.");
}
}