public void callback(Object callbackValue){
  if (latch.getCount() > 0) {
    this.value=callbackValue;
    latch.countDown();
  }
}

public void callback ( Object callbackValue ) { if ( latch . getCount ( ) > 0 ) { this . value = callbackValue ; latch . countDown ( ) ; } }
callback function to be exposed in javascript . < p / > this method has public visibility for rhino and should never be called by code outside of rhino .
