'Find our replay profiles.
Note that if called on volume creation the removeids list can be safely
ignored.
:param replay_profile_string: Comma separated list of profile names.
:return: List replication profiles to use, List to remove.
:raises VolumeBackendAPIException: If we can\'t find our profiles.'

def _find_replay_profiles(self, replay_profile_string):

    addids = []
    removeids = []
    replay_profiles = []
    if replay_profile_string:
        replay_profiles = replay_profile_string.split(',')
    if replay_profiles:
        pf = self._get_payload_filter()
        pf.append('scSerialNumber', self.ssn)
        pf.append('type', 'Standard')
        r = self.client.post('StorageCenter/ScReplayProfile/GetList', pf.payload)
        if self._check_result(r):
            profiles = self._get_json(r)
            for profile in profiles:
                if (replay_profiles.count(profile['name']) > 0):
                    addids.append(profile['instanceId'])
                else:
                    removeids.append(profile['instanceId'])
    if (len(addids) != len(replay_profiles)):
        msg = (_('Unable    to    locate    specified    replay    profiles    %s    ') % replay_profile_string)
        raise exception.VolumeBackendAPIException(data=msg)
    return (addids, removeids)
