Class[] proxyInterfaces = (Class[])
proxyInterfacesSet.toArray(new Class[proxyInterfacesSet.size()]);
// Client's EJBLocalHome object
try {
EJBLocalHome proxy = (EJBLocalHome) Proxy.newProxyInstance(loader, proxyInterfaces, invHandler);
invHandler.setProxy(proxy);
} catch (ClassCastException e) {
String msg = localStrings.getLocalString("ejb.basecontainer_invalid_local_home_interface",
"Local home interface [{0}] is invalid since it does not extend javax.ejb.EJBLocalHome.", localHomeIntf);
throw new IllegalArgumentException(msg, e);