Buggy code:
@ MessageBundle ( projectCode = "JBAS" ) public interface DeploymentScannerMessages { DeploymentScannerMessages MESSAGES = Messages . getBundle ( DeploymentScannerMessages . class ) ; @ Message ( id = 15050 , value = "Cannot<seq2seq4repair_space>remove<seq2seq4repair_space>subsystem<seq2seq4repair_space>while<seq2seq4repair_space>it<seq2seq4repair_space>still<seq2seq4repair_space>has<seq2seq4repair_space>scanners<seq2seq4repair_space>configured.<seq2seq4repair_space>Remove<seq2seq4repair_space>all<seq2seq4repair_space>scanners<seq2seq4repair_space>first." ) String cannotRemoveSubsystem ( ) { } @ Message ( id = 15051 , value = "Deployment<seq2seq4repair_space>content<seq2seq4repair_space>%s<seq2seq4repair_space>appears<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>incomplete<seq2seq4repair_space>and<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>progressing<seq2seq4repair_space>toward<seq2seq4repair_space>completion.<seq2seq4repair_space>This" + "<seq2seq4repair_space>content<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>auto-deployed.%s" ) String deploymentContentIncomplete ( File file , String suffix ) { } @ Message ( id = 15052 , value = "Did<seq2seq4repair_space>not<seq2seq4repair_space>receive<seq2seq4repair_space>a<seq2seq4repair_space>response<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>operation<seq2seq4repair_space>within<seq2seq4repair_space>the<seq2seq4repair_space>allowed<seq2seq4repair_space>timeout<seq2seq4repair_space>period<seq2seq4repair_space>" + ( "[%d<seq2seq4repair_space>seconds].<seq2seq4repair_space>Check<seq2seq4repair_space>the<seq2seq4repair_space>server<seq2seq4repair_space>configuration<seq2seq4repair_space>file<seq2seq4repair_space>and<seq2seq4repair_space>the<seq2seq4repair_space>server<seq2seq4repair_space>logs<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>more<seq2seq4repair_space>about<seq2seq4repair_space>the<seq2seq4repair_space>status<seq2seq4repair_space>of<seq2seq4repair_space>" + "the<seq2seq4repair_space>deployment." ) ) String deploymentTimeout ( long timeout ) { } @ Message ( id = 15053 , value = "%s<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist" ) IllegalArgumentException directoryDoesNotExist ( String path ) { } @ Message ( id = 15054 , value = "%s<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>writable" ) IllegalArgumentException directoryNotWritable ( String path ) { } @ Message ( id = 15055 , value = "File<seq2seq4repair_space>%s<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>scanned<seq2seq4repair_space>because<seq2seq4repair_space>it<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>begin<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>ZIP<seq2seq4repair_space>file<seq2seq4repair_space>format<seq2seq4repair_space>local<seq2seq4repair_space>file<seq2seq4repair_space>header<seq2seq4repair_space>signature" ) String invalidZipFileFormat ( String fileName ) { } @ Message ( id = 15056 , value = "File<seq2seq4repair_space>%s<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>scanned<seq2seq4repair_space>because<seq2seq4repair_space>it<seq2seq4repair_space>uses<seq2seq4repair_space>the<seq2seq4repair_space>currently<seq2seq4repair_space>unsupported<seq2seq4repair_space>ZIP64<seq2seq4repair_space>format" ) String invalidZip64FileFormat ( String fileName ) { } @ Message ( id = 15057 , value = "%s<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>directory" ) IllegalArgumentException notADirectory ( String path ) { } @ Message ( id = 15058 , value = "%s<seq2seq4repair_space>is<seq2seq4repair_space>null" ) IllegalArgumentException nullVar ( String name ) { } @ Message ( id = Message . NONE , value = "<seq2seq4repair_space>A<seq2seq4repair_space>previous<seq2seq4repair_space>version<seq2seq4repair_space>of<seq2seq4repair_space>this<seq2seq4repair_space>content<seq2seq4repair_space>was<seq2seq4repair_space>deployed<seq2seq4repair_space>and<seq2seq4repair_space>remains<seq2seq4repair_space>deployed." ) String previousContentDeployed ( ) { } @ Message ( id = 15059 , value = "scanner<seq2seq4repair_space>not<seq2seq4repair_space>configured" ) String scannerNotConfigured ( ) { } @ Message ( id = 15060 , value = "File<seq2seq4repair_space>%2$s<seq2seq4repair_space>was<seq2seq4repair_space>configured<seq2seq4repair_space>for<seq2seq4repair_space>auto-deploy<seq2seq4repair_space>but<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>safely<seq2seq4repair_space>auto-deployed.<seq2seq4repair_space>The<seq2seq4repair_space>reason<seq2seq4repair_space>the<seq2seq4repair_space>file<seq2seq4repair_space>" + "could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>auto-deployed<seq2seq4repair_space>was:<seq2seq4repair_space>%1$s.<seq2seq4repair_space>To<seq2seq4repair_space>enable<seq2seq4repair_space>deployment<seq2seq4repair_space>of<seq2seq4repair_space>this<seq2seq4repair_space>file<seq2seq4repair_space>create<seq2seq4repair_space>a<seq2seq4repair_space>file<seq2seq4repair_space>called<seq2seq4repair_space>%2$s%3$s" ) String unsafeAutoDeploy ( String errorMsg , String fileName , String marker ) { } <START_BUG> @ Message ( id = 15061 , value = "Extension<seq2seq4repair_space>with<seq2seq4repair_space>module<seq2seq4repair_space>'org.jboss.as.deployment-scanner'<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>installed<seq2seq4repair_space>on<seq2seq4repair_space>a<seq2seq4repair_space>domain<seq2seq4repair_space>controller.<seq2seq4repair_space>Please<seq2seq4repair_space>remove<seq2seq4repair_space>it<seq2seq4repair_space>and<seq2seq4repair_space>any<seq2seq4repair_space>subsystem<seq2seq4repair_space>referencing<seq2seq4repair_space>it" ) <END_BUG> IllegalStateException deploymentScannerNotForDomainMode ( ) ; }

Fix:
@ Message ( id = 15061 , value = "Extension<seq2seq4repair_space>with<seq2seq4repair_space>module<seq2seq4repair_space>'org.jboss.as.deployment-scanner'<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>installed<seq2seq4repair_space>in<seq2seq4repair_space>a<seq2seq4repair_space>managed<seq2seq4repair_space>domain.<seq2seq4repair_space>Please<seq2seq4repair_space>remove<seq2seq4repair_space>it<seq2seq4repair_space>and<seq2seq4repair_space>any<seq2seq4repair_space>subsystem<seq2seq4repair_space>referencing<seq2seq4repair_space>it" )