Source:
<code>public OnmsAcknowledgment(final Event e) throws ParseException { this(e.getTime(), "admin"); Collection<Parm> parms = e.getParmCollection(); if (parms.size() <= 2) { throw new IllegalArgumentException("Event:"+e.getUei()+" has invalid paramenter list, requires ackType and refId."); } for (Parm parm : parms) { final String parmValue = parm.getValue().getContent(); if (!"ackAction".equals(parm.getParmName()) && <START> !"ackType".equals(parm.getParmName()) && !"refId".equals(parm.getParmName()) && !"ackUser".equals(parm.getParmName()) ) { <END> throw new IllegalArgumentException("Event parm: "+parm.getParmName()+", is an invalid paramter"); } if ("ackType".equals(parm.getParmName())) { if ("ALARM".equalsIgnoreCase(parmValue) || "NOTIFICATION".equalsIgnoreCase(parmValue)) { m_ackType = ("ALARM".equalsIgnoreCase(parmValue) ? AckType.ALARM : AckType.NOTIFICATION); } else { throw new IllegalArgumentException("Event parm: "+parm.getParmName()+", has invalid value, requires: \"Alarm\" or \"Notification\"." ); } } else if ("refId".equals(parm.getParmName())){ m_refId = Integer.valueOf(parmValue); } else if ("ackUser".equals(parm.getParmName())){ m_ackUser = parmValue; } else { if ("ACKNOWLEDGE".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.ACKNOWLEDGE; } else if ("ESCALATE".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.ESCALATE; } else if ("UNACKNOWLEDGE".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.UNACKNOWLEDGE; } else if ("CLEAR".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.CLEAR; } else { m_ackAction = AckAction.UNSPECIFIED; } } } }</code><technical_language>continue support user parameter well</technical_language>

Target:
public OnmsAcknowledgment(final Event e) throws ParseException { this(e.getTime(), "admin"); Collection<Parm> parms = e.getParmCollection(); if (parms.size() <= 2) { throw new IllegalArgumentException("Event:"+e.getUei()+" has invalid paramenter list, requires ackType and refId."); } for (Parm parm : parms) { final String parmValue = parm.getValue().getContent(); if (!"ackAction".equals(parm.getParmName()) && !"ackType".equals(parm.getParmName()) && !"refId".equals(parm.getParmName()) && !"ackUser".equals(parm.getParmName()) && !"user".equals(parm.getParmName())) { throw new IllegalArgumentException("Event parm: "+parm.getParmName()+", is an invalid paramter"); } if ("ackType".equals(parm.getParmName())) { if ("ALARM".equalsIgnoreCase(parmValue) || "NOTIFICATION".equalsIgnoreCase(parmValue)) { m_ackType = ("ALARM".equalsIgnoreCase(parmValue) ? AckType.ALARM : AckType.NOTIFICATION); } else { throw new IllegalArgumentException("Event parm: "+parm.getParmName()+", has invalid value, requires: \"Alarm\" or \"Notification\"." ); } } else if ("refId".equals(parm.getParmName())){ m_refId = Integer.valueOf(parmValue); } else if ("ackUser".equals(parm.getParmName())|| "user".equals(parm.getParmName())){ m_ackUser = parmValue; } else { if ("ACKNOWLEDGE".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.ACKNOWLEDGE; } else if ("ESCALATE".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.ESCALATE; } else if ("UNACKNOWLEDGE".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.UNACKNOWLEDGE; } else if ("CLEAR".equalsIgnoreCase(parmValue)) { m_ackAction=AckAction.CLEAR; } else { m_ackAction = AckAction.UNSPECIFIED; } } } }