Fix to get shared collections by checking for ACE.
Added two util xquery scripts.