'Fetch the list of related items for the given role.
The url comes from the \'related\' field of the role.'

@g_connect
def fetch_role_related(self, related, role_id):

    try:
        url = ('%s/roles/%d/%s/?page_size=50' % (self.baseurl, int(role_id), related))
        data = self.__call_galaxy(url)
        results = data['results']
        done = (data.get('next_link', None) is None)
        while (not done):
            url = ('%s%s' % (self._api_server, data['next_link']))
            data = self.__call_galaxy(url)
            results += data['results']
            done = (data.get('next_link', None) is None)
        return results
    except:
        return None
