add filtering to extended resource collections hasAttachement and hasPolicy so that only those resource type are returned.