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