public static final SystemMessage getSystemMessage(final SystemMessageId smId) { SystemMessage sm = smId.getStaticSystemMessage(); if (sm != null) return sm; sm = new SystemMessage(smId); if (smId.getParamCount() == 0) smId.setStaticSystemMessage(sm); return sm; }
private SystemMessage(final SystemMessageId smId) { final int paramCount = smId.getParamCount(); _smId = smId; _params = paramCount != 0 ? new SMParam[paramCount] : EMPTY_PARAM_ARRAY; }