'Resolve a value from one of session, params, or the hard value'

def conv_param(self, val, params, session_data={}):

    try:
        if (val in session_data):
            return session_data[val]
        if is_identifier(val):
            return params[val]
    except:
        return None
    return val
