TUSCANY-3543 describes a NPE that is being thrown when the runtime tries to create a serlfReference for a component configured with multiple bindings and each binding has a name. Although one can argue that one of the bindings should not specify the name attribute to be considered the default one, or that we could specify component/service/binding on the getService call, I think that we should not be throwing NPE if this is not done, and want to propose that in this scenario, instead of returning null, we use the first available binding when creating the selfReference.
[1] https://issues.apache.org/jira/browse/TUSCANY-3543 -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
