Buggy code:
public class Browser extends JFrame { private static final long serialVersionUID = 0 ; private static String AppIcon = "org//reldb//rel//resources//RelIcon1.png" ; private static URL ImageIconResource = null ; private String databasePath ; private static boolean noLocalRel = true ; private Browser ( String databasePath ) { } private JPanel makeLocationPanel ( ) { } private JTabbedPaneWithCloseIcons makeContentPanel ( ) { } private JPanel makeStatusPanel ( ) { } private void initComponents ( ) { } private String getAppIconFilename ( ) { } private ImageIcon getAppIcon ( ) { } public void setStatus ( String s ) { } private String shortened ( String s ) { } private static class AttemptConnectionResult { Throwable exception ; StringReceiverClient client ; public AttemptConnectionResult ( Throwable exception ) { } public AttemptConnectionResult ( StringReceiverClient client ) { } } private Browser . AttemptConnectionResult attemptConnectionOpen ( String dbURL , boolean createAllowed ) { } private void doConnectionResultSuccess ( StringReceiverClient client , String dbURL , boolean permanent ) { } private void doConnectionResultFailed ( String reason , String dbURL ) { String msg = ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>establish<seq2seq4repair_space>connection<seq2seq4repair_space>to<seq2seq4repair_space>" + dbURL ) + "<seq2seq4repair_space>-<seq2seq4repair_space>" ) + reason ; setStatus ( msg ) ; msg = shortened ( msg ) ; if ( msg . contains ( "The<seq2seq4repair_space>environment<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>locked<seq2seq4repair_space>for<seq2seq4repair_space>single<seq2seq4repair_space>writer<seq2seq4repair_space>access.<seq2seq4repair_space>ENV_LOCKED" ) ) { JOptionPane . showMessageDialog ( null , ( "A<seq2seq4repair_space>copy<seq2seq4repair_space>of<seq2seq4repair_space>Rel<seq2seq4repair_space>is<seq2seq4repair_space>already<seq2seq4repair_space>accessing<seq2seq4repair_space>the<seq2seq4repair_space>database<seq2seq4repair_space>you're<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>open<seq2seq4repair_space>at<seq2seq4repair_space>" + dbURL ) , "Unable<seq2seq4repair_space>to<seq2seq4repair_space>open<seq2seq4repair_space>local<seq2seq4repair_space>database" , JOptionPane . ERROR_MESSAGE ) ; } else if ( msg . contains ( "Connection<seq2seq4repair_space>refused" ) ) { JOptionPane . showMessageDialog ( null , ( "A<seq2seq4repair_space>Rel<seq2seq4repair_space>server<seq2seq4repair_space>doesn't<seq2seq4repair_space>appear<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>running<seq2seq4repair_space>or<seq2seq4repair_space>available<seq2seq4repair_space>at<seq2seq4repair_space>" + dbURL ) , "Unable<seq2seq4repair_space>to<seq2seq4repair_space>open<seq2seq4repair_space>remote<seq2seq4repair_space>database" , JOptionPane . ERROR_MESSAGE ) ; } else <START_BUG> if ( msg . contains ( "RS0405:" ) ) { <END_BUG> JOptionPane . showMessageDialog ( null , ( dbURL + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>contain<seq2seq4repair_space>a<seq2seq4repair_space>Rel<seq2seq4repair_space>database." ) , "Unable<seq2seq4repair_space>to<seq2seq4repair_space>open<seq2seq4repair_space>local<seq2seq4repair_space>database" , JOptionPane . ERROR_MESSAGE ) ; } else if ( msg . contains ( "RS0307:" ) ) { JOptionPane . showMessageDialog ( null , ( dbURL + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist." ) , "Unable<seq2seq4repair_space>to<seq2seq4repair_space>open<seq2seq4repair_space>local<seq2seq4repair_space>database" , JOptionPane . ERROR_MESSAGE ) ; } else JOptionPane . showMessageDialog ( null , msg , "Unable<seq2seq4repair_space>to<seq2seq4repair_space>open<seq2seq4repair_space>database" , JOptionPane . ERROR_MESSAGE ) ; } private void doConnectionResultFailed ( Throwable exception , String dbURL ) { } private boolean openConnection ( String dbURL , boolean permanent , boolean canCreate ) { } public void go ( ) { } private void setLocation ( String location , boolean canCreate ) { } private void setLocationFromTextFieldLocation ( boolean canCreate ) { } public void chooseLocalDatabase ( ) { } public static boolean isRelDatabase ( File f ) { } public void createLocalDatabase ( ) { } public void openRemoteDatabase ( String reference ) { } public void chooseRemoteDatabase ( ) { } private void handleClosing ( ) { } private static Browser browser ; public static void exit ( ) { } private static void usage ( ) { } public boolean isLocalRelAvailable ( ) { } public static void main ( String [ ] args ) { } private JMenu FileMenu ; private JMenu OptionsMenu ; private JMenu HelpMenu ; private JLabel jLabelStatus ; private JMenuBar jMenuBarMain ; private JTabbedPaneWithCloseIcons jTabbedPaneContent ; private JTextField jTextFieldLocation ; private JButton jButtonPickLocal ; private JFileChooser localDatabaseChooser ; private JFileChooser localDatabaseCreator ; private DialogRemoteDatabase remoteDatabaseChooser ; }

Fix:
if ( msg . contains ( "RS0406:" ) ) {