public static boolean isEmailRegistered(String email){
  PersistenceManager pm=pmf.getPersistenceManager();
  try {
    UserRecord user=findUserByEmail(pm,email);
    return user != null;
  }
  finally {
    pm.close();
  }
}

public static boolean isEmailRegistered ( String email ) { PersistenceManager pm = pmf . getPersistenceManager ( ) ; try { UserRecord user = findUserByEmail ( pm , email ) ; return user != null ; } finally { pm . close ( ) ; } }
checks if an email is registered in this site .
