return "Event for <"+application.getId()+"> entering state " +state +" at "+timestamp.toGMTString() +" "+(record!=null?record+toString():"");
return "Event for <" + (application!=null?application.getId():"") + "> entering state " + state + " at " + XsdUtils.toIsoTime(timestamp) + " " + (record != null ? record + toString() : "");
    public String toString() {        return "Event for <"+application.getId()+"> entering state "                +state                +" at "+timestamp.toGMTString()                +" "+(record!=null?record+toString():"");    }