final List<ServiceController<?>> services = new ArrayList<ServiceController<?>>();
final ServiceTarget serviceTarget = context.getServiceTarget();
// Install the client-mapping service for the remoting connector
final EJBRemotingConnectorClientMappingsEntryProviderService clientMappingEntryProviderService = new EJBRemotingConnectorClientMappingsEntryProviderService(remotingServerServiceName);
final ServiceBuilder clientMappingEntryProviderServiceBuilder = serviceTarget.addService(EJBRemotingConnectorClientMappingsEntryProviderService.SERVICE_NAME, clientMappingEntryProviderService)
.addDependency(ServerEnvironmentService.SERVICE_NAME, ServerEnvironment.class, clientMappingEntryProviderService.getServerEnvironmentInjector())
.addDependency(remotingServerServiceName);
if (verificationHandler != null) {
clientMappingEntryProviderServiceBuilder.addListener(verificationHandler);
}
final ServiceController clientMappingEntryProviderServiceController = clientMappingEntryProviderServiceBuilder.install();