/** * Initializes the event map once and returns it. * <p> * This method is package private for testing reasons. * * @return the event map * @throws HL7Exception */ synchronized Map<Version, Map<String, String>> getEventMap() throws HL7Exception { if (eventMap == null) { try { eventMap = loadMessageStructures(); } catch (IOException e) { throw new HL7Exception("Could not load event map", e); } } return eventMap; }
/** * Initializes the event map once and returns it. * <p> * This method is package private for testing reasons. * * @return the event map * @throws HL7Exception */ synchronized Map<Version, Map<String, String>> getEventMap() throws HL7Exception { if (eventMap == null) { try { eventMap = loadMessageStructures(); } catch (IOException e) { throw new HL7Exception("Could not load event map", e); } } return eventMap; }