E event = e.newInstance();
final Timestamp date = new Timestamp(System.currentTimeMillis());
event.setStartDate(date);
final String location = "Afraha";
event.setLocation(location);
EventType eventType = new EventType();
final String eventName = "Demo";
eventType.setName(eventName);
event.setType(eventType);
SimpleDateFormat sdf = new SimpleDateFormat(MartinlawConstants.DEFAULT_TIMESTAMP_FORMAT);
final String formattedDate = sdf.format(event.getStartDate());