*/
public static Event eventByName(String eventName)
{
PersistenceManager pm = PMF.get().getPersistenceManager();
Query query = pm.newQuery(Event.class);
query.setFilter("name == nameParam");
query.declareParameters("String nameParam");
return querySingleDetachAndClose(Event.class, query, false, eventName);
}