Buggy code:
final class SubsystemTestDelegate { private final String TEST_NAMESPACE = "urn.org.jboss.test:1.0" ; private static final ModelNode SUCCESS ; private final Class < ? > testClass ; private final List < KernelServices > kernelServices = new ArrayList < KernelServices > ( ) ; protected final String mainSubsystemName ; private final Extension mainExtension ; private final Comparator < PathAddress > removeOrderComparator ; private ExtensionRegistry extensionParsingRegistry ; private ModelTestParser testParser ; private boolean addedExtraParsers ; private XMLMapper xmlMapper ; SubsystemTestDelegate ( final Class < ? > testClass , final String mainSubsystemName , final Extension mainExtension , final Comparator < PathAddress > removeOrderComparator ) { } String getMainSubsystemName ( ) { } void initializeParser ( ) throws Exception { } void cleanup ( ) throws Exception { } Extension getMainExtension ( ) { } List < ModelNode > parse ( String subsystemXml ) throws XMLStreamException { } List < ModelNode > parse ( AdditionalParsers additionalParsers , String subsystemXml ) throws XMLStreamException { } String outputModel ( ModelNode model ) throws Exception { } KernelServices installInController ( String subsystemXml ) throws Exception { } KernelServices installInController ( AdditionalInitialization additionalInit , String subsystemXml ) throws Exception { } KernelServices installInController ( List < ModelNode > bootOperations ) throws Exception { } KernelServices installInController ( AdditionalInitialization additionalInit , List < ModelNode > bootOperations ) throws Exception { } KernelServicesBuilder createKernelServicesBuilder ( AdditionalInitialization additionalInit ) { } ProcessType getProcessType ( ) { } void assertRemoveSubsystemResources ( KernelServices kernelServices ) { } void assertRemoveSubsystemResources ( KernelServices kernelServices , Set < PathAddress > ignoredChildAddresses ) { } private void getAllChildAddressesForRemove ( PathAddress address , List < PathAddress > addresses , Resource resource ) { } @ Deprecated void generateLegacySubsystemResourceRegistrationDmr ( KernelServices kernelServices , ModelVersion modelVersion ) throws IOException { KernelServices legacy = kernelServices . getLegacyServices ( modelVersion ) ; PathAddress pathAddress = PathAddress . pathAddress ( PathElement . pathElement ( SUBSYSTEM , mainSubsystemName ) ) ; ModelNode desc = ( ( KernelServicesInternal ) ( legacy ) ) . readFullModelDescription ( pathAddress . toModelNode ( ) ) ; File file = new File ( "target//test-classes" ) . getAbsoluteFile ( ) ; Assert . assertTrue ( file . exists ( ) ) ; for ( String part : this . getClass ( ) . getPackage ( ) . getName ( ) . split ( "\\." ) ) { file = new File ( file , part ) ; if ( ! ( file . exists ( ) ) ) { file . mkdir ( ) ; } } File dmrFile = new File ( file , ( ( ( ( ( ( ( ( mainSubsystemName ) + "-" ) + ( modelVersion . getMajor ( ) ) ) + "." ) + ( modelVersion . getMinor ( ) ) ) + "." ) + ( modelVersion . getMicro ( ) ) ) + ".dmr" ) ) ; PrintWriter pw = new PrintWriter ( dmrFile ) ; try { desc . writeString ( pw , false ) ; <START_BUG> System . out . println ( ( "Legacy<seq2seq4repair_space>resource<seq2seq4repair_space>definition<seq2seq4repair_space>dmr<seq2seq4repair_space>written<seq2seq4repair_space>to:<seq2seq4repair_space>" + ( dmrFile . getAbsolutePath ( ) ) ) ) ; <END_BUG> } finally { IoUtils . safeClose ( pw ) ; } } ModelNode checkSubsystemModelTransformation ( KernelServices kernelServices , ModelVersion modelVersion , ModelFixer legacyModelFixer ) throws IOException { } void addAdditionalParsers ( AdditionalParsers additionalParsers ) { } private ExtensionRegistry cloneExtensionRegistry ( AdditionalInitialization additionalInit ) { } private void validateDescriptionProviders ( AdditionalInitialization additionalInit , KernelServices kernelServices ) { } private class KernelServicesBuilderImpl implements ModelTestBootOperationsBuilder . BootOperationParser , KernelServicesBuilder { private final ModelTestBootOperationsBuilder bootOperationBuilder ; private final AdditionalInitialization additionalInit ; private Map < ModelVersion , SubsystemTestDelegate . LegacyKernelServiceInitializerImpl > legacyControllerInitializers = new HashMap < ModelVersion , SubsystemTestDelegate . LegacyKernelServiceInitializerImpl > ( ) ; public KernelServicesBuilderImpl ( AdditionalInitialization additionalInit ) { } @ Override public KernelServicesBuilder setSubsystemXmlResource ( String resource ) throws IOException , XMLStreamException { } @ Override public KernelServicesBuilder setSubsystemXml ( String subsystemXml ) throws XMLStreamException { } public KernelServicesBuilder setBootOperations ( List < ModelNode > bootOperations ) { } @ Override public KernelServicesBuilder setBootOperations ( ModelNode ... bootOperations ) { } public LegacyKernelServicesInitializer createLegacyKernelServicesBuilder ( AdditionalInitialization additionalInit , ModelTestControllerVersion version , ModelVersion modelVersion ) { } public KernelServices build ( ) throws Exception { } @ Override public List < ModelNode > parse ( String subsystemXml ) throws XMLStreamException { } @ Override public List < ModelNode > parseXml ( String xml ) throws Exception { } @ Override public List < ModelNode > parseXmlResource ( String xmlResource ) throws Exception { } } private class LegacyKernelServiceInitializerImpl implements LegacyKernelServicesInitializer { private final AdditionalInitialization additionalInit ; private final ModelTestControllerVersion testControllerVersion ; private String extensionClassName ; private ModelVersion modelVersion ; private ChildFirstClassLoaderBuilder classLoaderBuilder ; private Builder operationValidationExcludeBuilder ; private boolean persistXml = true ; private boolean skipReverseCheck ; private AdditionalInitialization reverseCheckConfig ; private ModelFixer reverseCheckModelFixer ; private OperationFixer reverseCheckOperationFixer = new OperationFixer ( ) { @ Override public ModelNode fixOperation ( ModelNode operation ) { } } ; public LegacyKernelServiceInitializerImpl ( AdditionalInitialization additionalInit , ModelTestControllerVersion version , ModelVersion modelVersion ) { } @ Override public LegacyKernelServicesInitializer addOperationValidationExclude ( String name , PathAddress pathAddress ) { } @ Override public LegacyKernelServicesInitializer addOperationValidationResolve ( String name , PathAddress pathAddress ) { } private void addOperationValidationConfig ( String name , PathAddress pathAddress , Action action ) { } @ Override public LegacyKernelServicesInitializer setExtensionClassName ( String extensionClassName ) { } @ Override public LegacyKernelServicesInitializer addURL ( URL url ) { } @ Override public LegacyKernelServicesInitializer addSimpleResourceURL ( String resource ) throws MalformedURLException { } @ Override public LegacyKernelServicesInitializer addMavenResourceURL ( String ... artifactGavs ) throws IOException , ClassNotFoundException { } @ Override public SubsystemTestDelegate . LegacyKernelServiceInitializerImpl addParentFirstClassPattern ( String pattern ) { } @ Override public SubsystemTestDelegate . LegacyKernelServiceInitializerImpl addChildFirstClassPattern ( String pattern ) { } @ Override public LegacyKernelServicesInitializer excludeFromParent ( ClassFilter exclusionFilter ) { } @ Override public LegacyKernelServicesInitializer addSingleChildFirstClass ( Class < ? > ... classes ) { } private LegacyControllerKernelServicesProxy install ( KernelServices mainServices , List < ModelNode > bootOperations ) throws Exception { }

Fix:
System . out . println ( ( "Legact<seq2seq4repair_space>resource<seq2seq4repair_space>defintion<seq2seq4repair_space>dmr<seq2seq4repair_space>written<seq2seq4repair_space>to:<seq2seq4repair_space>" + ( dmrFile . getAbsolutePath ( ) ) ) ) ;