def serialize(r):
    """
      Returns the dictionary represenation serialized back to plain text
    """
    d = ''
    if 'PROPERTY' in r:
        keys = sorted(r['PROPERTY'].keys())
        for key in keys:
            for index, val in enumerate(r['PROPERTY'][key]):
                d += '\r\nPROPERTY[{0}][{1}]={2}'.format(key, index, val)
    for prop in ['CODE', 'DESCRIPTION', 'QUEUETIME', 'RUNTIME']:
        if prop in r:
            d += '\r\n{0}={1}'.format(prop, r[prop])
    return '[RESPONSE]{0}\r\nEOF\r\n'.format(d)
