private void error(String message) {
   System.out.println("error: " + message);
   if (notificationLineSupport != null) {
     System.out.println("nls: " + message);
     notificationLineSupport.setErrorMessage(message);
   }
 }
  void validateFolder() {
    assert notificationLineSupport != null;

    String docFolder = getDocFolder();
    String error = FileUtils.validateDirectory(docFolder, true);
    if (error != null) {
      notificationLineSupport.setErrorMessage(error);
      dialogDescriptor.setValid(false);
      return;
    }
    notificationLineSupport.clearMessages();
    dialogDescriptor.setValid(true);
  }