}
    private static Clipboard getClipboard(JComponent component)    {      // Avoid throwing exception if the system clipboard access failed      // in the past.      if (clipboard != null)        return clipboard;      else	{	  try	    {              SecurityManager sm = System.getSecurityManager();              if (sm != null)	      sm.checkSystemClipboardAccess();	      // We may access system clipboard.	      return component.getToolkit().getSystemClipboard();	    }          catch (Exception e)	    {	      // We may not access system clipboard.              // Create VM-local clipboard if none exists yet.        clipboard = new Clipboard("Clipboard");      return clipboard;    }  }    }