throw new RuntimeException(e);
}
ejbLocator = new StatefulEJBLocator(viewClass, appName, moduleName, beanName, distinctName, sessionID);
} else {
if(EJBHome.class.isAssignableFrom(viewClass) || EJBLocalHome.class.isAssignableFrom(viewClass)) {
ejbLocator = new EJBHomeLocator(viewClass, appName, moduleName, beanName, distinctName);
} else {
ejbLocator = new StatelessEJBLocator(viewClass, appName, moduleName, beanName, distinctName);
}
}
final Object proxy = EJBClient.createProxy(ejbLocator);