@staticmethod
def _parse_message(message):
    """Extracts required attributes out of the messages properties.

        This extracts the `reply_to` and the `correlation_id` properties. If
        any of these required properties are missing a `ValueError` is raised.
        """
    properties = []
    for prop in ('reply_to', 'correlation_id'):
        try:
            properties.append(message.properties[prop])
        except KeyError:
            raise ValueError("The '%s' message property is missing" % prop)
    return properties
