protected function generateMenulist(&$source, $control, &$attributes)
 {
     parent::generateMenulist($source, $control, $attributes);
     if (isset($control->emptyitem)) {
         if (isset($control->emptyitem['locale'])) {
             $labellocale = (string) $control->emptyitem['locale'];
             $source[] = '$ctrl->emptyItemLabel=jLocale::get(\'' . $labellocale . '\');';
         } else {
             $label = (string) $control->emptyitem;
             $source[] = '$ctrl->emptyItemLabel=\'' . str_replace("'", "\\'", $label) . '\';';
         }
     }
     return false;
 }