/** Return a list object for this header if it has an associated list object. */ protected static SIPHeaderList getList(SIPHeader sipHeader) { if (!initialized) initializeListMap(); try { Class headerClass = sipHeader.getClass(); Class listClass = (Class) headerListTable.get(headerClass); return (SIPHeaderList) listClass.newInstance(); } catch (InstantiationException ex) { InternalError.handleException(ex); } catch (IllegalAccessException ex) { InternalError.handleException(ex); } return null; }