if(comment == null || comment.trim().equals("")){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Ticket.comment", this.getClass().getName()));
}
MultiParameter multiParameter = new MultiParameter();
multiParameter.addParameter(idTicket);
multiParameter.addParameter(comment);
Hashtable attributes = new Hashtable();
for(String key: TicketKeys.FIELDS_ARRAY){
if(!key.equals(TicketKeys.FIELD_COMMENT)){
String attribute = ticket.getOtherAttribute(key);
if(attribute != null && !attribute.trim().equals("")){
attributes.put(key, attribute);
}
}
}
multiParameter.addParameter(attributes);
return multiParameter;
}