@classmethod
def decode(cls, stream):
    """Factory method. Creates sub-item from binary stream.

        :param stream: binary stream that should be decoded
        :return: new sub-item
        """
    _, reserved, item_length, response_len = cls.header.unpack(stream.read(
        cls.header.size))
    server_response = stream.read(response_len).decode()
    return cls(server_response, reserved)
