if (configuredReference.getPort().getServiceContract() != null){
interfaze = configuredReference.getPort().getServiceContract().getInterface();
}else if(configuredReference.getPart() instanceof EntryPoint){
interfaze = ((EntryPoint)configuredReference.getPart()).getConfiguredService().getPort().getServiceContract().getInterface();
}else{
BuilderConfigException bce = new BuilderConfigException("No interface found on configured reference");
bce.setIdentifier(configuredReference.getName());
throw bce;
}
List<SourceWireFactory> wireFactories = new ArrayList<SourceWireFactory>();
List<WireSourceConfiguration> wireConfigurations = new ArrayList<WireSourceConfiguration>();
for (ConfiguredService configuredService : configuredReference.getTargetConfiguredServices()) {