'decodes and performs the action given
It works kind of a dispatcher'

def _processAction(self, action, parameters, sync=False):

    if sync:
        self._sync_api_request = True
    api.devlog(('_processAction    -    %s    -    parameters    =    %s' % (action, str(parameters))))
    action_callback = self._actionDispatcher[action]
    res = self._dispatchActionWithLock(action_callback, *parameters)
    if (not res):
        api.devlog(('Action    code    %d    failed.    Parameters    =    %s' % (action, str(parameters))))
    if sync:
        self._sync_api_request = False
