} catch ( Throwable t ) {
String msg =
Messages.getInstance().getString(
"AbstractSpringPentahoObjectFactory.WARN_FAILED_TO_RETRIEVE_OBJECT",
interfaceClass.getSimpleName() ); //$NON-NLS-1$
throw new ObjectFactoryException( msg, t );
}
// Sanity check
if ( interfaceClass.isAssignableFrom( object.getClass() ) == false ) {
throw new IllegalStateException( "Object retrived from Spring not expected type: "