GatewayConfig config, String archiveName, Topology topology,
Map<String,List<ProviderDeploymentContributor>> providers,
Map<String,List<ServiceDeploymentContributor>> services ) {
WebArchive webArchive = ShrinkWrap.create( WebArchive.class, archiveName );
WebAppDescriptor webAppDesc = Descriptors.create( WebAppDescriptor.class );
GatewayDescriptor gateway = GatewayDescriptorFactory.create();
DeploymentContext context = new DeploymentContextImpl(
config, topology, gateway, webArchive, webAppDesc, providers, services );
return context;
}