BZ-99999 Upgrade LocalPersistence to standard class pattern.
Add jsdoc too.