public void init(){
  StringBuilder buf=new StringBuilder();
  String command=String.format(ImageServerDialogProperties.getString("cmd.promptChange"),PROMPT);
  try {
    sendWaitFor(command,defaultTimeout,prompts,buf);
  }
 catch (  NetworkDeviceControllerException e) {
    log.error("timeout when trying to connect to image server: {}",e.getMessage());
    log.info("let's retry");
    sendWaitFor(command,defaultTimeout / 2,prompts,buf);
    log.info("retry worked");
  }
  command=String.format(ImageServerDialogProperties.getString("cmd.termLength"),1000);
  sendWaitFor(command,defaultTimeout,prompts,buf);
}

public void init ( ) { StringBuilder buf = new StringBuilder ( ) ; String command = String . format ( ImageServerDialogProperties . getString ( "cmd.promptChange" ) , PROMPT ) ; try { sendWaitFor ( command , defaultTimeout , prompts , buf ) ; } catch ( NetworkDeviceControllerException e ) { log . error ( "timeout when trying to connect to image server: {}" , e . getMessage ( ) ) ; log . info ( "let's retry" ) ; sendWaitFor ( command , defaultTimeout / 2 , prompts , buf ) ; log . info ( "retry worked" ) ; } command = String . format ( ImageServerDialogProperties . getString ( "cmd.termLength" ) , 1000 ) ; sendWaitFor ( command , defaultTimeout , prompts , buf ) ; }
since prompt is not known , setup a custom one .
