public void createTmpUser(User user){
  TmpUserLockedAccessRestriction tuar=new TmpUserLockedAccessRestriction();
  user.addRestriction(tuar);
  create(user);
}

public void createTmpUser ( User user ) { TmpUserLockedAccessRestriction tuar = new TmpUserLockedAccessRestriction ( ) ; user . addRestriction ( tuar ) ; create ( user ) ; }
create a temporary user .
