<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_protocol_from_name(name):
 """ Returns the protocol class for the protocol with the given name. :type name: str :param name: The name of the protocol. :rtype: Protocol :return: The protocol class. """

    cls = protocol_map.get(name)
    if not cls:
        raise ValueError('Unsupported protocol "%s".' % name)
    return cls