The query I have is, findByUserID(userID) is a method of the LocalHome Interface.
The classes that will be called through the LocalHome interface like CustomerBean or CustomerBMP (which extends CustomerBean) are returning an object CustomerPK (primary Key). Hence, who is actually making the transformation from the CustomerPK (to the CustomerLocal object, which is actually returned by the LocalHome interface as we see there above.
Where does it take place??
Sorry but I find dificult to understand what is actually happening inside the container.