}
public HomeHandle getHomeHandle()
throws RemoteException
{
HomeHandle localHomeHandle1;
Object localObject5;
if (!Util.isLocal(this))
try
{
org.omg.CORBA_2_3.portable.InputStream localInputStream = null;
try
{
OutputStream localOutputStream = _request("_get_homeHandle", true);
localInputStream = (org.omg.CORBA_2_3.portable.InputStream)_invoke(localOutputStream);
localHomeHandle1 = (HomeHandle)localInputStream.read_abstract_interface();
}
catch (ApplicationException localApplicationException)
{
localInputStream = (org.omg.CORBA_2_3.portable.InputStream)localApplicationException.getInputStream();
localObject5 = localInputStream.read_string();
throw new UnexpectedException((String)localObject5);
}
catch (RemarshalException localRemarshalException)
{
localHomeHandle1 = getHomeHandle();
return localHomeHandle1;
}
finally
{
_releaseReply(localInputStream);
}
}
catch (SystemException localSystemException)
{
throw Util.mapSystemException(localSystemException);
}
ServantObject localServantObject = _servant_preinvoke("_get_homeHandle", EJBHome.class);
if (localServantObject == null)
return getHomeHandle();
try
{
HomeHandle localHomeHandle2 = ((EJBHome)localServantObject.servant).getHomeHandle();
localHomeHandle1 = (HomeHandle)Util.copyObject(localHomeHandle2, _orb());
}
catch (Throwable localThrowable)
{
localObject5 = (Throwable)Util.copyObject(localThrowable, _orb());