This will fail if you first try to interpret ``EdisItemLocal`` as ``#edis_item`` and then you match it with ``not_found``. You should first check that it's not ``not_found`` and **then** try to use it as an ``#edis_item``