if (!CVUtility.isModuleVisible("Events", userId, this.dataSource))
throw new AuthorizationFailedException("Event - getEventDetails");
int result = 0;
try {
InitialContext ic = CVUtility.getInitialContext();
EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
EventsLocal local = home.create();
local.setDataSource(this.dataSource);
result = local.addEvent(mapEvent, userId);
} catch (Exception exe) {
exe.printStackTrace();
result = 1;