private ClipboardRespons write(String value) {
    ClipboardRespons res = new ClipboardRespons();
    try {
      clipboard.setContents(new StringSelection(value), null);
      res.setValid(true);
    } catch (Exception e) {
      res.setValid(false);
    }

    return res;
  }
 private ClipboardRespons read() {
   ClipboardRespons res = new ClipboardRespons();
   try {
     String bRet = (String) clipboard.getData(DataFlavor.stringFlavor);
     bRet = bRet.replaceAll("\n", "\r\n");
     res.setContent(bRet);
     res.setValid(true);
   } catch (Exception e) {
     res.setValid(false);
   }
   return res;
 }