}
protected void deploy(DeploymentPhaseContext phaseContext, StompletMetaData stompletMetaData) {
DeploymentUnit unit = phaseContext.getDeploymentUnit();
StompletService service = new StompletService();
service.setConfig( stompletMetaData.getStompletConfig() );
service.setDestinationPattern( stompletMetaData.getDestinationPattern() );
phaseContext.getServiceTarget().addService( StompServices.stomplet( unit, stompletMetaData.getName() ), service )
.addDependency( StompServices.container( unit ), SimpleStompletContainer.class, service.getStompletContainerInjector() )
.addDependency( StompServices.stompletComponentResolver( unit, stompletMetaData.getName() ), ComponentResolver.class, service.getComponentResolverInjector() )
.addDependency( CoreServices.runtimePoolName( unit, "stomplets" ), RubyRuntimePool.class, service.getRuntimePoolInjector() )
.setInitialMode( Mode.ACTIVE )
.install();
}