The invocation InvocationContext is already authoritative on the answer of getInvokedBusinessInterface(). So the extra check is not needed at all. Although we could argue about the message in the exception itself.
http://mike.lab.bos.redhat.com:8380/hudson/job/JBoss-AS-6.x-tests-ejb3/481/testReport/org.jboss.ejb3.test.ejbcontext.unit/EjbContextUnitTestCase/