class GroupExistanceVerifierChainLink extends DefaultVerifierChainLink<T> {

	@Override
	protected void verifyLink(final T resource) {
		List<String> groups = sessionService.getGroups();
		User user = sessionService.getUser();
		
		if (groups.isEmpty()) {
			LOG.info(MessageFormat.format("There is no group for user:{0}", user.getLogin()));
			NoGroupForUserException e = new NoGroupForUserException("There is no group for user");
			e.setUser(user);
			throw e;
		}
		
	}

}