JBIDE-18670 HTML5 Palette: Palette model refactoring