Buggy code:
private final CliConfig config ; private final ControllerAddressResolver addressResolver ; private final CommandRegistry cmdRegistry = new CommandRegistry ( ) ; private Console console ; private boolean terminate ; private String cmdLine ; private DefaultCallbackHandler parsedCmd = new DefaultCallbackHandler ( true ) ; private boolean domainMode ; private ModelControllerClient client ; private ControllerAddress currentAddress ; private final String username ; private final char [ ] password ; private final boolean disableLocalAuth ; private final int connectionTimeout ; private SSLContext sslContext ; private CommandContextImpl . LazyDelagatingTrustManager trustManager ; private Map < String , Object > map = new HashMap < String , Object > ( ) ; private final OperationRequestAddress prefix = new DefaultOperationRequestAddress ( ) ; private final NodePathFormatter prefixFormatter = DefaultPrefixFormatter . INSTANCE ; private final OperationCandidatesProvider operationCandidatesProvider ; private final OperationRequestHandler operationHandler ; private BatchManager batchManager = new DefaultBatchManager ( ) ; private final CommandCompleter cmdCompleter ; private BufferedWriter outputTarget ; private List < CliEventListener > listeners = new ArrayList < CliEventListener > ( ) ; private int exitCode ; private File currentDir = new File ( "" ) ; private boolean resolveParameterValues ; private boolean silent ; CommandContextImpl ( ) throws CliInitializationException { } CommandContextImpl ( String username , char [ ] password , boolean disableLocalAuth ) throws CliInitializationException { } CommandContextImpl ( String defaultController , String username , char [ ] password , boolean disableLocalAuth , boolean initConsole , final int connectionTimeout ) throws CliInitializationException { } CommandContextImpl ( String defaultController , String username , char [ ] password , boolean disableLocalAuth , InputStream consoleInput , OutputStream consoleOutput ) throws CliInitializationException { } protected void initBasicConsole ( InputStream consoleInput , OutputStream consoleOutput ) throws CliInitializationException { } private void copyConfigSettingsToConsole ( InputStream consoleInput , OutputStream consoleOutput ) { } private void initCommands ( ) { } private void registerExtraHandlers ( ) { } public int getExitCode ( ) { } private void initSSLContext ( ) throws CliInitializationException { } @ Override public boolean isTerminated ( ) { } private StringBuilder lineBuffer ; @ Override public void handle ( String line ) throws CommandLineException { } public void handleSafe ( String line ) { } @ Override public String getArgumentsString ( ) { } @ Override public void terminateSession ( ) { } @ Override public void printLine ( String message ) { } protected void error ( String message ) { } private String readLine ( String prompt , boolean password , boolean disableHistory ) throws CommandLineException { } @ Override public void printColumns ( Collection < String > col ) { } @ Override public void set ( String key , Object value ) { } @ Override public Object get ( String key ) { } @ Override public Object remove ( String key ) { } @ Override public ModelControllerClient getModelControllerClient ( ) { } @ Override public CommandLineParser getCommandLineParser ( ) { } @ Override public OperationRequestAddress getCurrentNodePath ( ) { } @ Override public NodePathFormatter getNodePathFormatter ( ) { } @ Override public OperationCandidatesProvider getOperationCandidatesProvider ( ) { } @ Override public void connectController ( ) throws CommandLineException { } @ Override public void connectController ( String controller ) throws CommandLineException { } @ Override @ Deprecated public void connectController ( String host , int port ) throws CommandLineException { } @ Override public void bindClient ( ModelControllerClient newClient ) { } private void initNewClient ( ModelControllerClient newClient , ControllerAddress address ) { } @ Override public File getCurrentDir ( ) { } @ Override public void setCurrentDir ( File dir ) { } private boolean handleSSLFailure ( ) throws CommandLineException { Certificate [ ] lastChain ; if ( ( ( trustManager ) == null ) || ( ( lastChain = trustManager . getLastFailedCertificateChain ( ) ) == null ) ) { return false ; } <START_BUG> error ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>unrecognised<seq2seq4repair_space>server<seq2seq4repair_space>certificate" ) ; <END_BUG> for ( Certificate current : lastChain ) { if ( current instanceof X509Certificate ) { X509Certificate x509Current = ( ( X509Certificate ) ( current ) ) ; Map < String , String > fingerprints = generateFingerprints ( x509Current ) ; printLine ( ( "Subject<seq2seq4repair_space>-<seq2seq4repair_space>" + ( x509Current . getSubjectX500Principal ( ) . getName ( ) ) ) ) ; printLine ( ( "Issuer<seq2seq4repair_space>-<seq2seq4repair_space>" + ( x509Current . getIssuerDN ( ) . getName ( ) ) ) ) ; printLine ( ( "Valid<seq2seq4repair_space>From<seq2seq4repair_space>-<seq2seq4repair_space>" + ( x509Current . getNotBefore ( ) ) ) ) ; printLine ( ( "Valid<seq2seq4repair_space>To<seq2seq4repair_space>-<seq2seq4repair_space>" + ( x509Current . getNotAfter ( ) ) ) ) ; for ( String alg : fingerprints . keySet ( ) ) { printLine ( ( ( alg + "<seq2seq4repair_space>:<seq2seq4repair_space>" ) + ( fingerprints . get ( alg ) ) ) ) ; } printLine ( "" ) ; } } for ( ; ; ) { String response ; if ( trustManager . isModifyTrustStore ( ) ) { response = readLine ( "Accept<seq2seq4repair_space>certificate?<seq2seq4repair_space>[N]o,<seq2seq4repair_space>[T]emporarily,<seq2seq4repair_space>[P]ermenantly<seq2seq4repair_space>:<seq2seq4repair_space>" , false , true ) ; } else { response = readLine ( "Accept<seq2seq4repair_space>certificate?<seq2seq4repair_space>[N]o,<seq2seq4repair_space>[T]emporarily<seq2seq4repair_space>:<seq2seq4repair_space>" , false , true ) ; } if ( ( response != null ) && ( ( response . length ( ) ) == 1 ) ) { switch ( response . toLowerCase ( Locale . ENGLISH ) . charAt ( 0 ) ) { case 'n' : return false ; case 't' : trustManager . storeChainTemporarily ( lastChain ) ; return true ; case 'p' : if ( trustManager . isModifyTrustStore ( ) ) { trustManager . storeChainPermenantly ( lastChain ) ; return true ; } } } } } private static final String [ ] FINGERPRINT_ALGORITHMS = new String [ ] { "MD5" , "SHA1" } ; private Map < String , String > generateFingerprints ( final X509Certificate cert ) throws CommandLineException { } private String generateFingerPrint ( final String algorithm , final byte [ ] cert ) throws GeneralSecurityException { } private boolean tryConnection ( final ModelControllerClient client , ControllerAddress address ) throws CommandLineException { } @ Override public void disconnectController ( ) { }

Fix:
printLine ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>unrecognised<seq2seq4repair_space>server<seq2seq4repair_space>certificate" ) ;