public void create(Persistent persistent, User manager) throws AccessPoemException, ValidationPoemException, InitialisationPoemException { final Board b = (Board)persistent; b.setAttachmentspath( getBoardsAttachmentsPath() + File.separatorChar + b.getName_unsafe()); b.setAttachmentsurl( getBoardsAttachmentsURL() + File.separatorChar + b.getName_unsafe()); super.create(persistent);    if (manager == null) manager = (User)PoemThread.accessToken(); final User theManager = manager; PoemThread.withAccessToken( AccessToken.root, new PoemTask() { public void run() { b.subscribe( theManager, getBoardsDatabaseTables().getMembershipStatusTable().getNormal(), Boolean.TRUE, Boolean.TRUE); }  public String toString() { return "Subscribing the user " + theManager + " to this board"; } });
public void create(Persistent persistent) { create(persistent,null);
  public void create(Persistent persistent, User manager)      throws AccessPoemException, ValidationPoemException,             InitialisationPoemException {    final Board b = (Board)persistent;    b.setAttachmentspath(      getBoardsAttachmentsPath() + File.separatorChar + b.getName_unsafe());    b.setAttachmentsurl(      getBoardsAttachmentsURL() + File.separatorChar + b.getName_unsafe());    super.create(persistent);    // When we have created a new board, subscribe the user who created it    // as the first manager (unless otherwise supplied)    if (manager == null) manager = (User)PoemThread.accessToken();    final User theManager = manager;    PoemThread.withAccessToken(      AccessToken.root,      new PoemTask() {        public void run() {          b.subscribe(              theManager,              getBoardsDatabaseTables().getMembershipStatusTable().getNormal(),              Boolean.TRUE,              Boolean.TRUE);        }        public String toString() {          return "Subscribing the user " + theManager + " to this board";        }      });  }