Buggy code:
class ServerDeploymentStartStopHandler implements Serializable { private static final long serialVersionUID = 4804538479425267270L ; private static final Logger log = Logger . getLogger ( "org.jboss.as.deployment" ) ; < P > void deploy ( final String deploymentName , final String runtimeName , final byte [ ] deploymentHash , final ServiceContainer serviceContainer , final UpdateResultHandler < ? , P > resultHandler , final P param ) { } < P > void deploy ( final String deploymentName , final String runtimeName , final byte [ ] deploymentHash , final BatchBuilder batchBuilder , final ServiceContainer serviceContainer , final UpdateResultHandler < ? , P > resultHandler , final P param ) { } < P > void redeploy ( final String deploymentName , final String runtimeName , final byte [ ] deploymentHash , final ServiceContainer serviceContainer , final UpdateResultHandler < ? , P > resultHandler , final P param ) { } < P > void undeploy ( final String deploymentName , final ServiceContainer serviceContainer , final UpdateResultHandler < ? , P > resultHandler , final P param ) { } private void activate ( final String deploymentName , String runtimeName , final byte [ ] deploymentHash , final ServiceName deploymentServiceName , final ServiceActivatorContext context , final ServiceContainer serviceContainer ) { ServerDeploymentStartStopHandler . log . infof ( "Activating<seq2seq4repair_space>deployment:<seq2seq4repair_space>%s" , deploymentName ) ; Closeable handle = null ; try { final ServerDeploymentRepository deploymentRepo = getDeploymentRepository ( serviceContainer ) ; <START_BUG> final VirtualFile deploymentRoot = VFS . getChild ( ( "deployments//" + runtimeName ) ) ; <END_BUG> try { handle = deploymentRepo . mountDeploymentContent ( deploymentName , runtimeName , deploymentHash , deploymentRoot ) ; } catch ( IOException e ) { throw new RuntimeException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>mount<seq2seq4repair_space>deployment<seq2seq4repair_space>archive" , e ) ; } final BatchBuilder batchBuilder = context . getBatchBuilder ( ) ; DeploymentService deploymentService = new DeploymentService ( handle ) ; BatchServiceBuilder < Void > serviceBuilder = batchBuilder . addService ( deploymentServiceName , deploymentService ) ; final BatchBuilder deploymentSubBatch = batchBuilder . subBatchBuilder ( ) ; deploymentSubBatch . addDependency ( deploymentServiceName ) ; deploymentSubBatch . addListener ( new org . jboss . as . deployment . DeploymentFailureListener ( deploymentServiceName ) ) ; final DeploymentUnitContext deploymentUnitContext = new org . jboss . as . deployment . unit . DeploymentUnitContextImpl ( deploymentServiceName . getSimpleName ( ) , deploymentSubBatch , serviceBuilder ) ; attachVirtualFile ( deploymentUnitContext , deploymentRoot ) ; deploymentUnitContext . putAttachment ( ATTACHMENT_KEY , new MountHandle ( handle ) ) ; try { Manifest manifest = VFSUtils . getManifest ( deploymentRoot ) ; if ( manifest != null ) ManifestAttachment . attachManifest ( deploymentUnitContext , manifest ) ; } catch ( IOException e ) { throw new RuntimeException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>manifest<seq2seq4repair_space>for<seq2seq4repair_space>deployment<seq2seq4repair_space>" + deploymentRoot ) , e ) ; } final DeploymentChainProvider deploymentChainProvider = DeploymentChainProvider . INSTANCE ; final DeploymentChain deploymentChain = deploymentChainProvider . determineDeploymentChain ( deploymentUnitContext ) ; ServerDeploymentStartStopHandler . log . debugf ( "Executing<seq2seq4repair_space>deployment<seq2seq4repair_space>'%s'<seq2seq4repair_space>with<seq2seq4repair_space>chain:<seq2seq4repair_space>%s" , deploymentName , deploymentChain ) ; if ( deploymentChain == null ) throw new RuntimeException ( ( "Failed<seq2seq4repair_space>determine<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>chain<seq2seq4repair_space>for<seq2seq4repair_space>deployment<seq2seq4repair_space>root:<seq2seq4repair_space>" + deploymentRoot ) ) ; try { deploymentChain . processDeployment ( deploymentUnitContext ) ; } catch ( DeploymentUnitProcessingException e ) { throw new RuntimeException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>process<seq2seq4repair_space>deployment<seq2seq4repair_space>chain." , e ) ; } } catch ( Throwable t ) { VFSUtils . safeClose ( handle ) ; if ( t instanceof RuntimeException ) { throw ( ( RuntimeException ) ( t ) ) ; } throw new RuntimeException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>activate<seq2seq4repair_space>deployment<seq2seq4repair_space>unit<seq2seq4repair_space>" + deploymentName ) , t ) ; } } private ServerDeploymentRepository getDeploymentRepository ( ServiceContainer serviceContainer ) throws ServiceNotFoundException { } private abstract static class AbstractDeploymentServiceTracker < P > extends AbstractServiceListener < Object > { protected final UpdateResultHandler < ? , P > resultHandler ; protected final P param ; protected AbstractDeploymentServiceTracker ( final UpdateResultHandler < ? , P > resultHandler , final P param ) { } @ Override public void serviceFailed ( ServiceController < ? > controller , StartException reason ) { } protected void recordResult ( ServiceController < ? extends Object > controller ) { } protected abstract boolean isCorrectService ( ServiceController < ? > service ) { } } private static class DeploymentServiceTracker < P > extends ServerDeploymentStartStopHandler . AbstractDeploymentServiceTracker < P > { private final ServiceName deploymentServiceName ; private DeploymentServiceTracker ( final ServiceName deploymentServiceName , final UpdateResultHandler < ? , P > resultHandler , final P param ) { } @ Override public void serviceStarted ( ServiceController < ? > controller ) { } @ Override protected boolean isCorrectService ( ServiceController < ? > controller ) { } } private static class UndeploymentServiceTracker < P > extends ServerDeploymentStartStopHandler . AbstractDeploymentServiceTracker < P > { private final String deploymentName ; private UndeploymentServiceTracker ( final String deploymentName , final UpdateResultHandler < ? , P > resultHandler , final P param ) { } @ Override public void serviceRemoved ( ServiceController < ? > controller ) { } @ Override protected boolean isCorrectService ( ServiceController < ? > controller ) { } } private static class RedeploymentServiceTracker extends AbstractServiceListener < Object > { private final String deploymentName ; RedeploymentServiceTracker ( final String deploymentName ) { } @ Override public void serviceRemoved ( ServiceController < ? > controller ) { } } }

Fix:
final VirtualFile deploymentRoot = VFS . getChild ( ( "content//" + runtimeName ) ) ;