@Override
	public boolean isQuestionAlreadyAnswered(String userId, Long qId) {
		try {
			pm = PMF.get().getPersistenceManager();
			Query query = pm.newQuery(User.class, ":p.contains(userId)");
			List<User> result = (List<User>) query.execute(userId);
			if (result.size() > 0) {
				List<Long> userActivity = result.get(0).getUserActivity();
				pm.close();
				if (userActivity != null) {
					for (int i = 0; i < userActivity.size(); i++) {
						if (userActivity.get(i) != null) {
							Long activityId = userActivity.get(i);
							Long DBqId = getQuestionIdFromActivityId(activityId);
							if (DBqId.equals(qId)) {
								return true;
							}
						}
					}
				}
			}
		} catch (Exception e) {
			LOGGER.log(Level.SEVERE, e.getMessage());
			return false;
		} finally {
			pm.close();
		}
		return false;
	}