private User createUserHelper(String userName){
  User user=new User();
  user.setUserName(userName);
  user.setId(idGenerator.getAnotherId());
  long time=System.currentTimeMillis();
  user.setModTime(time);
  user.setCreateTime(time);
  db.persistUser(user);
  Entry root=createRoot(user,null,Constants.tableofcontents,null,time,time,null);
  user.setTableOfContentId(root.getId());
  return user;
}

private User createUserHelper ( String userName ) { User user = new User ( ) ; user . setUserName ( userName ) ; user . setId ( idGenerator . getAnotherId ( ) ) ; long time = System . currentTimeMillis ( ) ; user . setModTime ( time ) ; user . setCreateTime ( time ) ; db . persistUser ( user ) ; Entry root = createRoot ( user , null , Constants . tableofcontents , null , time , time , null ) ; user . setTableOfContentId ( root . getId ( ) ) ; return user ; }
helper method . creates a user entry
