public boolean exists(String username){
  boolean ret;
synchronized (userPassListMutex) {
    ret=userPassList.containsKey(username);
  }
  return ret;
}

public boolean exists ( String username ) { boolean ret ; synchronized ( userPassListMutex ) { ret = userPassList . containsKey ( username ) ; } return ret ; }
checks whether the given user already exists
