class SecurityServiceImpl extends RemoteServiceServlet implements SecurityService {

	@Override
	public GUIGroup getGroup(long groupId) throws ServerException {
		ServiceUtil.validateSession(getThreadLocalRequest());
		GroupDAO groupDao = (GroupDAO) Context.get().getBean(GroupDAO.class);
		Group group = groupDao.findById(groupId);

		if (group != null) {
			GUIGroup grp = new GUIGroup();
			grp.setId(groupId);
			grp.setDescription(group.getDescription());
			grp.setName(group.getName());
			grp.setSource(group.getSource());
			return grp;
		}

		return null;
	}

}