try {
InitialContext ic = CVUtility.getInitialContext();
ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
ActivityHelperLocal remote = home.create();
remote.setDataSource(dataSource);
remote.deleteActivity(activityId, userId);
} catch (NamingException ne) {
throw new EJBException(ne);
} catch (CreateException ce) {
throw new EJBException(ce);
}