What I meant by that remark is that the lookup is not needed in line number 9.
The following code would be sufficient:
Although the code above doesn't look like it has a lookup of the EJB it certainly does a lookup because "Each injection of an object corresponds to a JNDI lookup" (page 63)