File testFile = new File(board.getAttachmentspath_unsafe(), filename);
File testFile;  try { testFile = new File(board.getAttachmentspath_unsafe(), filename); } catch (Exception e) { throw new UnexpectedExceptionException("Failed to create a file in directory:" + board.getAttachmentspath_unsafe() + " filename:" + filename, e); }
  public String makeUnique(String filename) {    Message message = (Message)getDatabase().getTable("message").                        getObject(getMessage_unsafe());    Board board = (Board)getDatabase().getTable("board").                        getObject(message.getBoard_unsafe());    File testFile = new File(board.getAttachmentspath_unsafe(), filename);    int dot = filename.lastIndexOf(".");    String start = (dot != -1) ? filename.substring(0,dot) : filename;    String extension = (dot != -1)                        ? filename.substring(dot,filename.length()) : "";    int count = 0;    while (testFile.exists()) {      filename = start + (count++) + extension;      testFile = new File(board.getAttachmentspath_unsafe(), filename);    }    return testFile.getName();  }