public void setWebComponent(final WebComponent webComponent) {
		if (webComponent instanceof WComponent) {
			// No interceptor supplied but we need one to make things simple.
			// Dummy up a pass-through/do-nothing interceptor.
			InterceptorComponent inter = new InterceptorComponent();
			inter.setBackingComponent(webComponent);
			setInterceptor(inter);
		} else if (webComponent instanceof InterceptorComponent) {
			setInterceptor((InterceptorComponent) webComponent);
		} else {
			throw new IllegalArgumentException("Unexpected extension of WebComponent supplied.");
		}
	}
public void setWebComponent ( final WebComponent webComponent ) { if ( webComponent instanceof WComponent ) { InterceptorComponent inter = new InterceptorComponent ( ) ; inter . setBackingComponent ( webComponent ) ; setInterceptor ( inter ) ; } else if ( webComponent instanceof InterceptorComponent ) { setInterceptor ( ( InterceptorComponent ) webComponent ) ; } else { throw new IllegalArgumentException ( "Unexpected extension of WebComponent supplied." ) ; } }
@param webComponent the web component