Buggy code:
public class ExampleRunner { public static void main ( String [ ] args ) throws Exception { } private static void connect ( String urlPart ) throws Exception { } private static < T > T lookup ( DeploymentUtils utils , String name , Class < T > expected ) throws Exception { } private static void usage ( Throwable t ) throws Exception { System . out . println ( ( "Caught<seq2seq4repair_space>" + ( t . toString ( ) ) ) ) ; System . out . println ( "This<seq2seq4repair_space>is<seq2seq4repair_space>most<seq2seq4repair_space>likely<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>following:" ) ; System . out . println ( "Please<seq2seq4repair_space>make<seq2seq4repair_space>sure<seq2seq4repair_space>your<seq2seq4repair_space>standalone.xml<seq2seq4repair_space>includes<seq2seq4repair_space>the<seq2seq4repair_space>H2DS<seq2seq4repair_space>datasource<seq2seq4repair_space>in<seq2seq4repair_space>its<seq2seq4repair_space><profile><seq2seq4repair_space>element." ) ; System . out . println ( "An<seq2seq4repair_space>example<seq2seq4repair_space>configuration<seq2seq4repair_space>is<seq2seq4repair_space>as<seq2seq4repair_space>follows:\n" ) ; System . out . println ( "<subsystem<seq2seq4repair_space>xmlns=\"urn:jboss:domain:datasources:1.0\">" ) ; System . out . println ( "<seq2seq4repair_space><datasources>" ) ; <START_BUG> System . out . println ( "<seq2seq4repair_space><datasource<seq2seq4repair_space>jndi-name=\"java://H2DS\"<seq2seq4repair_space>enabled=\"true\"<seq2seq4repair_space>use-java-context=\"true\"<seq2seq4repair_space>pool-name=\"H2DS\">" ) ; <END_BUG> System . out . println ( "<seq2seq4repair_space><connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1<//connection-url>" ) ; System . out . println ( "<seq2seq4repair_space><driver-class>org.h2.Driver<//driver-class>" ) ; System . out . println ( "<seq2seq4repair_space><module>com.h2database.h2<//module>" ) ; System . out . println ( "<seq2seq4repair_space><pool><//pool>" ) ; System . out . println ( "<seq2seq4repair_space><security>" ) ; System . out . println ( "<seq2seq4repair_space><user-name>sa<//user-name>" ) ; System . out . println ( "<seq2seq4repair_space><password>sa<//password>" ) ; System . out . println ( "<seq2seq4repair_space><//security>" ) ; System . out . println ( "<seq2seq4repair_space><validation><//validation>" ) ; System . out . println ( "<seq2seq4repair_space><time-out><//time-out>" ) ; System . out . println ( "<seq2seq4repair_space><statement><//statement>" ) ; System . out . println ( "<seq2seq4repair_space><//datasource>" ) ; System . out . println ( "<seq2seq4repair_space><//datasources>" ) ; System . out . println ( "<//subsystem>" ) ; System . out . println ( "\nIf<seq2seq4repair_space>your<seq2seq4repair_space>profile<seq2seq4repair_space>already<seq2seq4repair_space>includes<seq2seq4repair_space>other<seq2seq4repair_space>datasource<seq2seq4repair_space>configurations,<seq2seq4repair_space>just<seq2seq4repair_space>add<seq2seq4repair_space>the<seq2seq4repair_space>nested<seq2seq4repair_space><datasource><seq2seq4repair_space>element<seq2seq4repair_space>above<seq2seq4repair_space>next<seq2seq4repair_space>to<seq2seq4repair_space>them." ) ; } }

Fix:
System . out . println ( "<seq2seq4repair_space><datasource<seq2seq4repair_space>jndi-name=\"java:jboss//datasources//ExampleDS\"<seq2seq4repair_space>enabled=\"true\"<seq2seq4repair_space>use-java-context=\"true\"<seq2seq4repair_space>pool-name=\"H2DS\">" ) ;