public static boolean occupy(int waitMs){
  if (occupiedUntil != null && occupiedUntil.after(new Date())) {
    return false;
  }
  occupiedUntil=DateUtils.addMilliseconds(new Date(),waitMs);
  return true;
}

public static boolean occupy ( int waitMs ) { if ( occupiedUntil != null && occupiedUntil . after ( new Date ( ) ) ) { return false ; } occupiedUntil = DateUtils . addMilliseconds ( new Date ( ) , waitMs ) ; return true ; }
tries to occupy the onclick enabler .
