private boolean insertActivity(Activity activity) {
		String activityName = activity.getName();
		boolean saved = false;
		
		try {
			Connection conn = Dao.getConnection();
			if (!"".equals(activityName)) {
				if (!activityDao.nameExists(conn, activityName)) {
					int insertActivity = activityDao.insertActivity(conn, activity);
					if (insertActivity > 0) saved = true;
				} else {
					AlertMessages.activityNameExists(activityDialog, activityName);
				}
			} else {
				AlertMessages.emptyActivityFields(activityDialog);
			}
		} catch (SQLException ex) {
			ErrorMessages.sqlExceptionError("insertActivity()", ex);
		} catch (ClassNotFoundException ex) {
			ErrorMessages.classNotFoundError("insertActivity()", ex);
		}
		return saved;
	}