Makes plugin work without hibernate