throw new IllegalArgumentException(String.format(MESSAGE,this,child));
}
//Todo: Circular Import Dependency on AbstractDelegatingPicoContainer
if (child instanceof AbstractDelegatingPicoContainer) {
AbstractDelegatingPicoContainer delegateChild = (AbstractDelegatingPicoContainer) child;
while(delegateChild != null) {
PicoContainer delegateInstance = delegateChild.getDelegate();
if (this == delegateInstance) {
throw new IllegalArgumentException(String.format(MESSAGE,this,child));
}
if (delegateInstance instanceof AbstractDelegatingPicoContainer) {
delegateChild = (AbstractDelegatingPicoContainer) delegateInstance;