public function applyToPalette($name, $table)
{
$palettes =& $GLOBALS['TL_DCA'][$table]['palettes'];
if (!isset($palettes[$name])) {
throw new PaletteNotFoundException(sprintf('Palette "%s" not found in table "%s"', $name, $table));
}
$palettes[$name] = $this->applyToString($palettes[$name]);
return $this;
}