if(segCode.equals("UNH")) {
return new UNHHandler(unhSegment, untSegment, hierarchyChangeListener);
} else if(segCode.equals("UNG")) {
return new UNGHandler(ungSegment, uneSegment);
} else if(segCode.equals("UNA")) {
return new UNAHandler();
} else if(segCode.equals("UNB")) {
return new UNBHandler(unbSegment, unzSegment, toCharsetMapping);
} else if(segCode.charAt(0) == 'U') {
return new GenericHandler();
}