private static boolean ensureCurrent(LeasedResource resource){
  return resource.getExpiration() > SystemTime.timeMillis();
}

private static boolean ensureCurrent ( LeasedResource resource ) { return resource . getExpiration ( ) > SystemTime . timeMillis ( ) ; }
utility method that check for valid resource
