Return <code>EJBObject</code> reference for this handle. <p>
545360
public EJBObject getEJBObject() throws RemoteException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "getEJBObject");

        if (object == null)
        {

            try
            {

                Class homeClass = null;

                try
                {

                    //
                    // If we are running on the server side, then the thread
                    // context loader would have been set appropriately by
                    // the container. If running on a client, then check the
                    // thread context class loader first
                    //
                    ClassLoader cl =
                                    Thread.currentThread().getContextClassLoader();
                    if (cl != null)
                    {
                        homeClass = cl.loadClass(homeInterface);
                    }
                    else
                    {
                        throw new ClassNotFoundException();
                    }

                } catch (ClassNotFoundException ex)
                {

                    //               FFDCFilter.processException(ex, CLASS_NAME + ".getEJBObject",
                    //                                           "147", this);
                    try
                    {
                        homeClass = Class.forName(homeInterface);
                    } catch (ClassNotFoundException e)
                    {
                        //                  FFDCFilter.processException(e, CLASS_NAME + ".getEJBObject",
                        //"155", this);
                        throw new ClassNotFoundException(homeInterface);
                    }

                }

                InitialContext ctx = null;
                EJBHome home = null;
                try
                {
                    // Locate the home
                    //91851 begin
                    if (this.initialContextProperties == null)
                    {
                        ctx = new InitialContext();
                    }
                    else
                    {
                        try
                        {
                            ctx = new InitialContext(this.initialContextProperties);
                            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) // d144064
                                Tr.debug(tc, "Created an initial context with the " +
                                             "initialContextProperties, providerURL = " +
                                             (String) initialContextProperties.get("java.naming.provider.url") +
                                             " INITIAL_CONTEXT_FACTORY = " +
                                             (String) initialContextProperties.get(Context.INITIAL_CONTEXT_FACTORY));
                        } catch (NamingException ne)
                        {
                            //                     FFDCFilter.processException(ne, CLASS_NAME + ".getEJBObject",
                            //"186", this);
                            ctx = new InitialContext();
                        }
                    }
                    //91851 end
                    home = (EJBHome) PortableRemoteObject.
                                    narrow(ctx.lookup(homeJNDIName), homeClass);
                } catch (NoInitialContextException e)
                {
                    //               FFDCFilter.processException(e, CLASS_NAME + ".getEJBObject", "197", this);
                    java.util.Properties p = new java.util.Properties();
                    p.put(Context.INITIAL_CONTEXT_FACTORY,
                          "com.ibm.websphere.naming.WsnInitialContextFactory");
                    ctx = new InitialContext(p);
                    home = (EJBHome) PortableRemoteObject.
                                    narrow(ctx.lookup(homeJNDIName), homeClass);
                }

                // Introspect to find and invoke the findByPrimaryKey method
                Method fbpk = findFindByPrimaryKey(homeClass);
                object = (EJBObject) fbpk.invoke(home, new Object[] { key });

            } catch (InvocationTargetException e)
            {

                // Unwrap the real exception and pass it back

                //            FFDCFilter.processException(e, CLASS_NAME + ".getEJBObject", "216", this);
                if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                    Tr.exit(tc, "getEJBObject", e);

                Throwable t = e.getTargetException();
                if (t instanceof RemoteException)
                {
                    throw (RemoteException) t;
                }
                else
                {
                    throw new RemoteException("Could not find bean", t);
                }

            } catch (NamingException e)
            {

                // Problem looking up the home

                //            FFDCFilter.processException(e, CLASS_NAME + ".getEJBObject", "236", this);
                if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                    Tr.exit(tc, "getEJBObject", e);

                RemoteException re =
                                new NoSuchObjectException("Could not find home in JNDI");
                re.detail = e;

                throw re;

            } catch (ClassNotFoundException e)
            {

                // We couldn't find the home interface's class

                //            FFDCFilter.processException(e, CLASS_NAME + ".getEJBObject", "252", this);
                if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                    Tr.exit(tc, "getEJBObject", e);
                throw new RemoteException("Could not load home interface", e);

            } catch (IllegalAccessException e)
            {

                // This shouldn't happen
                //            FFDCFilter.processException(e, CLASS_NAME + ".getEJBObject", "262", this);
                if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                    Tr.exit(tc, "getEJBObject", e);
                throw new RemoteException("Bad home interface definition", e);

            }

        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "getEJBObject");

        return object;
    }
605761
public final Object getEObject() {

        String thisMethodName = "getEObject";

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, thisMethodName, this);
            SibTr.exit(tc, thisMethodName, _me);
        }

        return _me;
    }
1245548
@Override
	public Object retrieve(int handle) throws DataStoreException
    {
        if (SAFE_MODE) checkHandle(handle);
        return data[handle];
    }
1205534
private Object registeredObjectRead(int handle) throws InvalidObjectException {
        Object res = objectsRead.get(handle - ObjectStreamConstants.baseWireHandle);
        if (res == UNSHARED_OBJ) {
            throw new InvalidObjectException("Cannot read back reference to unshared object");
        }
        return res;
    }
158456
public Object getHandle(int iHandleType) throws DBException
    {
        Object bookmark = this.getCurrentTable().getHandle(iHandleType);
        return bookmark;
    }
1325058
@Override
    public Handle getHandle() throws RemoteException
    {
        ComponentMetaDataAccessorImpl cmdAccessor = null; // p125735
        try {
            cmdAccessor = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor(); // p125735
            cmdAccessor.beginContext(bmd); // p125735
            return beanId.getHome().createHandle(beanId);
        } finally
        {
            if (cmdAccessor != null)
                cmdAccessor.endContext(); // p125735
        }
    }
1017328
protected CmsObject getCmsObject() {

        try {
            CmsObject cms = OpenCms.initCmsObject(A_CmsUI.getCmsObject());
            cms.getRequestContext().setSiteRoot((String)getSiteSelector().getValue());
            cms.getRequestContext().setCurrentProject(cms.readProject((CmsUUID)getProjectSelector().getValue()));
            return cms;
        } catch (CmsException e) {
            LOG.error("Unable to get CmsObject", e);
        }
        return null;

    }
1362971
public Object getWrapper() throws Exception
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
        {
            Tr.entry(tc, "getWrapper");
        }

        EJSContainer container = EJSContainer.getDefaultContainer();
        Object retObj = null;
        WrapperManager wm = container.getWrapperManager();

        // The first bytes of serialized data is a header and
        // the first byte of header identifies it as either a
        // BeanId or a WrapperId. So examine first byte to
        // determine whether it is a BeanId or a WrapperId.
        if (ivIdBytes[0] == (byte) 0xAC)
        {
            // First byte indicates it is a BeanId. Use the
            // WrapperManager to find the wrapper in wrapper cache.
            ByteArray byteArray = new ByteArray(ivIdBytes);

            if (DEBUG_ON) // d458325
            {
                if (isTraceOn && tc.isDebugEnabled())
                {
                    Tr.debug(tc, "serialized BeanId bytes = " + byteArray.toString());
                }
            }

            BeanId beanId = BeanId.getBeanId(byteArray, container);

            if (isTraceOn && tc.isDebugEnabled())
            {
                Tr.debug(tc, "deserialized a BeanId = " + beanId
                             + ", primary key = " + beanId.getPrimaryKey());
            }

            retObj = wm.getWrapper(beanId).getLocalObject();
        }
        else if (ivIdBytes[0] == (byte) 0xAD) // d458325
        {
            // First byte indicates it is a WrapperId that was serialized.
            // Recreate the WrapperId and use it to get BeanId, local business
            // interface name, and local business interface index.
            WrapperId wrapperId = new WrapperId(ivIdBytes);
            int index = wrapperId.ivInterfaceIndex;
            String interfaceName = wrapperId.ivInterfaceClassName;

            if (DEBUG_ON) // d458325
            {
                if (isTraceOn && tc.isDebugEnabled())
                {
                    Tr.debug(tc, "serialized WrapperId bytes[" + ivIdBytes.length + "] = "
                                 + wrapperId.toString());
                    Tr.debug(tc, "WrapperId.ivInterfaceIndex = " + index
                                 + ", WrapperId.ivInterfaceClassName = " + interfaceName
                                 + ", WrapperId.ivBeanIdIndex = " + wrapperId.ivBeanIdIndex);
                }
            }

            ByteArray byteArray = wrapperId.getBeanIdArray();
            BeanId beanId = BeanId.getBeanId(byteArray, container);
            BeanMetaData bmd = beanId.getBeanMetaData();

            Tr.debug(tc, "deserialized a WrapperId for BeanId = " + beanId
                         + ", primary key = " + beanId.getPrimaryKey());

            // Obtain the home and create the 'set' of wrappers for the
            // deserialized BeanId.
            EJSHome home = bmd.getHome();
            EJSWrapperCommon wc = home.internalCreateWrapper(beanId);

            // Finally, decide which proxy is needed from the set. This may
            // be for an aggregate local wrapper (all business local interfaces)
            // or it may be for a specific interface, in which case the index
            // must be verified                                          F743-34304
            if (index == EJSWrapperBase.AGGREGATE_LOCAL_INDEX)
            {
                retObj = wc.getAggregateLocalWrapper();
            }
            else
            {
                // Now verify index is still valid. If we fail over to a new server,
                // the index for the interface may be different than original server.
                // In that case, we need to determine the new index.
                Class<?>[] bInterfaces = bmd.ivBusinessLocalInterfaceClasses;
                int numberOfLocalInterfaces = bInterfaces.length;
                String wrapperInterfaceName = null;
                if (index < numberOfLocalInterfaces)
                {
                    wrapperInterfaceName = bInterfaces[index].getName();
                }

                // Is the BusinessLocalWrapper for the correct interface name?
                if ((wrapperInterfaceName == null) || (!wrapperInterfaceName.equals(interfaceName)))
                {
                    // Nope, index must be invalid, so we need to get an updated index
                    // that matches the desired interface name.
                    // Fix up the WrapperId with index that matches this server.
                    index = bmd.getRequiredLocalBusinessInterfaceIndex(interfaceName);
                }

                // Now that we have correct index, obtain the corresponding
                // proxy object.
                retObj = wc.getLocalBusinessObject(index);
            }
        }

        // Return the wrapper
        if (isTraceOn && tc.isEntryEnabled())
        {
            Tr.exit(tc, "getWrapper returning: " +
                        (retObj == null ? retObj
                                        : (retObj.getClass().getName() +
                                        '@' + Integer.toHexString(retObj.hashCode()))));
        }
        return retObj;
    }
984468
public Object getObject()
        throws EFapsException
    {
        Object ret = null;
        if (this.valueSelect == null) {
            // if the fromSelect has data
            if (this.fromSelect.hasResult()) {
                // and there are more than one id the current object must not be null
                if (this.idList.size() > 1 && this.currentObject != null) {
                    ret = this.fromSelect.getMainOneSelect().getObject(this.currentObject);
                // or if there is only one id the first objectvalue must not be null
                } else if (this.idList.size() == 1 && this.objectList.get(0) != null) {
                    ret = this.fromSelect.getMainOneSelect().getObject(this.currentObject);
                }
            }
        } else {
            // if the currentObject is not null it means that the values are
            // retrieved by iteration through the object list
            if (this.currentId != null) {
                ret = this.valueSelect.getValue(this.currentObject);
            } else {
                ret = this.valueSelect.getValue(this.objectList);
            }
        }
        return ret;
    }
847017
public EJBHome getEJBHome() throws RemoteException
    {
        // When ivActualVersion is Constant.HOME_HANDLE_V1, ivEjbHome may
        // be null. So if this happens, we need to find the EJBHome object
        // by doing a lookup in JNDI. For all other versions, ivEjbHome
        // should never be null.
        if (ivEjbHome == null)
        {
            try
            {
                Class homeClass = null;
                try
                {
                    //
                    // If we are running on the server side, then the thread
                    // context loader would have been set appropriately by
                    // the container. If running on a client, then check the
                    // thread context class loader first
                    //
                    ClassLoader cl = Thread.currentThread().getContextClassLoader();
                    if (cl != null)
                    {
                        homeClass = cl.loadClass(ivHomeInterface);
                    }
                    else
                    {
                        throw new ClassNotFoundException();
                    }
                } catch (ClassNotFoundException ex)
                {
                    // FFDCFilter.processException(ex, CLASS_NAME + ".getEJBHome", "131", this);
                    try
                    {
                        homeClass = Class.forName(ivHomeInterface);
                    } catch (ClassNotFoundException e)
                    {
                        // FFDCFilter.processException(e, CLASS_NAME + ".getEJBHome",
                        //                             "138", this);
                        throw new ClassNotFoundException(ivHomeInterface);
                    }
                }

                InitialContext ctx = null;
                try
                {
                    // Locate the home
                    //91851 begin
                    if (this.ivInitialContextProperties == null)
                    {
                        ctx = new InitialContext();
                    }
                    else
                    {
                        try
                        {
                            ctx = new InitialContext(ivInitialContextProperties);
                        } catch (NamingException ne)
                        {
                            // FFDCFilter.processException(ne, CLASS_NAME + ".getEJBHome",
                            //                             "161", this);
                            ctx = new InitialContext();
                        }
                    }
                    //91851 end
                    ivEjbHome = (EJBHome) PortableRemoteObject.narrow(ctx.lookup(ivJndiName)
                                                                      , homeClass);
                } catch (NoInitialContextException e)
                {
                    // FFDCFilter.processException(e, CLASS_NAME + ".getEJBHome", "172", this);
                    java.util.Properties p = new java.util.Properties();
                    p.put(Context.INITIAL_CONTEXT_FACTORY
                          , "com.ibm.websphere.naming.WsnInitialContextFactory");
                    ctx = new InitialContext(p);
                    ivEjbHome = (EJBHome) PortableRemoteObject.narrow(ctx.lookup(ivJndiName)
                                                                      , homeClass);
                }
            } catch (NamingException e)
            {
                // Problem looking up the home
                // FFDCFilter.processException(e, CLASS_NAME + ".getEJBHome", "184", this);
                RemoteException re = new NoSuchObjectException("Could not find home in JNDI");
                re.detail = e;
                throw re;
            } catch (ClassNotFoundException e)
            {
                // We couldn't find the home interface's class
                // FFDCFilter.processException(e, CLASS_NAME + ".getEJBHome", "192", this);
                throw new RemoteException("Could not load home interface", e);
            }

        }

        return ivEjbHome;
    }
898058
public static Throwable getCause(Throwable e) {
        Throwable cause = null; 
        Throwable result = e;
        while (null != (cause = result.getCause()) && (result != cause)) {
            result = cause;
        }
        return result;
    }
337298
@Override
	public Object getObject(final int columnIndex) throws SQLException {
		String columnLabel = getWrapped().getMetaData().getColumnLabel(columnIndex);

		return getObject(columnLabel);
	}
611264
public <T> InternalEjbDescriptor<T> get(String beanName) {
        return cast(ejbByName.get(beanName));
    }
1229279
@Override
    public RemoteObjectInstance getRemoteObjectInstance(JavaColonNamespace namespace, String name) throws NamingException {
        RemoteObjectInstance roi = null;
        Object o = getObjectInstance(namespace, name);
        if (o != null && o instanceof java.rmi.Remote) {
            EJBBinding ejbBinding = getEJBBinding(namespace, name);
            if (ejbBinding == null || ejbBinding.interfaceName == null) {
                throw new NamingException("Unable to determine bound EJB's remote interface");
            }
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "getObjectInstance() ==> " + o + "  interfaceName = " + ejbBinding.interfaceName);
            }

            roi = roiFactory.create((Remote) o, ejbBinding.interfaceName);
        }
        return roi;
    }
590963
public CmsProject getReferenceProject() {

        if (m_referenceProject == null) {
            if (m_request != null) {
                m_referenceProject = m_request.getCurrentProject();
            }
        }
        return m_referenceProject;
    }
140191
public com.google.appengine.v1.ApiEndpointHandler getApiEndpoint() {
    if (handlerTypeCase_ == 4) {
       return (com.google.appengine.v1.ApiEndpointHandler) handlerType_;
    }
    return com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance();
  }
667244
@Override
	public <T> T getObject(final int columnIndex, final Class<T> type) throws SQLException {
		String columnLabel = getWrapped().getMetaData().getColumnLabel(columnIndex);

		return getObject(columnLabel, type);
	}