finder = new ClassFinder(getClassPath());
fieldList = finder.findAnnotatedFields(EJB.class);
for(Iterator fields = fieldList.iterator(); fields.hasNext();) {
Field field = (Field) fields.next();
EJB ejbAnnotation = field.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());
field.setAccessible(true);