class FeedGroupMap implements ConfigurationChangeListener {

	@Override
	public void onAdd(Entity entity) throws IvoryException {

		if (entity.getEntityType().equals(EntityType.FEED)) {
			Feed feed = (Feed) entity;
			if (feed.getGroups() == null || feed.getGroups().equals("")) {
				return;
			}
			Set<FeedGroup> groupSet = getGroups(feed);
			addGroups(feed.getName(), groupSet);
		}

	}

	private  FeedGroupMap();

}