// Create an interface contract mapper
InterfaceContractMapper mapper = new InterfaceContractMapperImpl();
// Create factory extension point
ModelFactoryExtensionPoint factories = new DefaultModelFactoryExtensionPoint();
registry.addExtensionPoint(factories);
// Create Message factory
MessageFactory messageFactory = new MessageFactoryImpl();
factories.addFactory(messageFactory);
// Create a proxy factory
ProxyFactory proxyFactory = ReallySmallRuntimeBuilder.createProxyFactory(registry, mapper, messageFactory);
// Create model factories
assemblyFactory = new RuntimeAssemblyFactory(mapper, proxyFactory);
factories.addFactory(assemblyFactory);
PolicyFactory policyFactory = new DefaultPolicyFactory();
factories.addFactory(policyFactory);
SCABindingFactory scaBindingFactory = new DefaultSCABindingFactory();
factories.addFactory(scaBindingFactory);
// Create a contribution service
contributionService = ReallySmallRuntimeBuilder.createContributionService(registry,
assemblyFactory,
policyFactory,