JavaServiceContract sourceContract = registry.introspect(Source.class);
service.setServiceContract(sourceContract);
service.setTarget(new URI("InnerSourceComponent"));
innerType.add(service);
CompositeImplementation innerImpl = new CompositeImplementation();
innerImpl.setComponentType(innerType);
ComponentDefinition<CompositeImplementation> sourceComponentDefinition =
new ComponentDefinition<CompositeImplementation>("SourceComponent", innerImpl);
ReferenceTarget refTarget = new ReferenceTarget();
refTarget.setReferenceName("TargetComponentRef");