* @return an array of version ids
	 */
	public int[] getVersionsForGroup( short group )
	{
		HashSet<Short> descendants = new HashSet<Short>();
		if ( group != Group.TOP_LEVEL )
			descendants.add( group );
		getDescendantsOfGroup( group, descendants );
		ArrayList<Integer> chosen = new ArrayList<Integer>();
		for ( int i=0;i<versions.size();i++ )
		{
			Version v = versions.get( i );
			Short vGroup = new Short( v.group );
			if ( descendants.contains(vGroup) )
				chosen.add( i+1 );
		}
		int[] selectedVersions = new int[chosen.size()];
		for ( int i=0;i<chosen.size();i++ )
			selectedVersions[i] = chosen.get(i).intValue();
		return selectedVersions;
	}