return event(source,eventType,context);
}
public static Event event(Object source, int eventType, EventContext context)
{
DefaultEvent event = new DefaultEvent();
event.setSource(source);
event.setType(eventType);
event.setEventContext(context);
event.setTimeStamp(System.currentTimeMillis());
return event;
}