public void waitForLocalImplement(final String endPointName,long timeoutMS){
  if (timeoutMS <= 0) {
    timeoutMS=Integer.MAX_VALUE;
  }
  final long endTime=timeoutMS + System.currentTimeMillis();
  while (System.currentTimeMillis() < endTime && !hasLocalEndPoint(endPointName)) {
    ThreadUtil.sleep(50);
  }
}

public void waitForLocalImplement ( final String endPointName , long timeoutMS ) { if ( timeoutMS <= 0 ) { timeoutMS = Integer . MAX_VALUE ; } final long endTime = timeoutMS + System . currentTimeMillis ( ) ; while ( System . currentTimeMillis ( ) < endTime && ! hasLocalEndPoint ( endPointName ) ) { ThreadUtil . sleep ( 50 ) ; } }
wait for the messenger to know about the given endpoint .
