finder = new ClassFinder(getClassPath());
methodList = finder.findAnnotatedMethods(EJB.class);
for(Iterator methods = methodList.iterator(); methods.hasNext();) {
Method method = (Method) methods.next();
EJB ejbAnnotation = method.getAnnotation(EJB.class);
if( (ejbAnnotation.name() != null) && (ejbAnnotation.name() != "") && (ejbAnnotation.beanInterface() != null)) {
try {
home = initialContext.lookup(ejbAnnotation.name());
// home = ejbAnnotation.beanInterface().cast(PortableRemoteObject.narrow(home, ejbAnnotation.beanInterface()));
home = cast(home, ejbAnnotation.beanInterface());
method.setAccessible(true);