Using pure OSGi preferences for now...
common refactorings to support contexts.