class DefaultSessionService implements SessionService {

	@Override
	public void verifyGroup(final String title) {
		List<String> groups = getGroups();
		Boolean result = false;
		
		for (String groupTitle : groups) {
			if (groupTitle.equals(title)) {
				result = true;
				break;
			}
		}
		
		if (!result) {
			throw new AccessDeniedException("Access to appropriate group is denied to current user");
		}
		
	}

}