Action doesn't work in openhab 2 - dependency problem to persistence extensions


I created an action some time ago (only locally as it is very specific). This action doesn’t work anymore with openhab2. It doesn’t compile because of a dependency problem.

I had a dependency to " org.openhab.core.persistence.extensions" which seems to be not available in the compatibility layer. I can find the equivalent class in “org.eclipse.smarthome.model.persistence.extensions”, however I cannot use this as I would have to change everything to the new API (and I think this is not even possible for actions yet).

Has anyone an idea on that?