if ( obj instanceof Stub )
{
return obj;
}
Tie tie = null;
if ( obj instanceof Tie )
{
tie = ( Tie ) obj;
obj = tie.getTarget();
}
else
{
tie = Util.getTie( obj );
}
if ( tie == null )
{
throw new java.rmi.NoSuchObjectException( "Object not exported" );
}
final org.omg.CORBA.portable.ObjectImpl thisObject = (ObjectImpl) tie.thisObject();
final String[] ids = thisObject._ids();
for (int i = 0; i < ids.length; ++i)
{
final String repoID = ids[i];