Modded to support resMemberOf attribute