Get an instance of EJBMethodInfoImpl.
Either return EJBMethod off the stack or new up a new instance after
stack capacity is exhausted returns EJBMethodInfoImpl
340817
final public EJBMethodInfoImpl get(String methodSignature,
                                       String methodNameOnly,
                                       EJSWrapperBase wrapper,
                                       MethodInterface methodInterface, // d164221
                                       TransactionAttribute txAttr) // 199625
    {
        EJBMethodInfoImpl retVal = null;
        BeanMetaData bmd = wrapper.bmd;
        setup(bmd);// delay initting array so we can get slot count
        //d151861
        if ((topOfStack < 0) || orig)
        {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                Tr.debug(tc, "EJBMethodInfoStack::get called with neg TopOfStack " +
                             "or in orig mode:" + topOfStack + " orig: " + orig);
            orig = true;
            elements = null;//d166651
            retVal = bmd.createEJBMethodInfoImpl(bmd.container.getEJBRuntime().getMetaDataSlotSize(MethodMetaData.class));

        }//d151861
        else
        {
            if (topOfStack < elements.length)
            {
                retVal = elements[topOfStack++];
            }
            else
            {
                ++topOfStack;
                retVal = bmd.createEJBMethodInfoImpl(bmd.container.getEJBRuntime().getMetaDataSlotSize(MethodMetaData.class));
            }
        }

        retVal.initializeInstanceData(null, methodNameOnly, bmd, methodInterface, txAttr, false);
        return retVal;
    }
127926
def get_instance(self, payload):
        
        return EntityInstance(self._version, payload, service_sid=self._solution['service_sid'], )
1262289
@Override
    public EJBHome getEJBHome() throws RemoteException
    {
        EJSWrapper homeWrapper = wrapperManager.getWrapper(beanId.getHome().getId()).getRemoteWrapper();
        Object homeRef = container.getEJBRuntime().getRemoteReference(homeWrapper);
        return (EJBHome) PortableRemoteObject.narrow(homeRef, EJBHome.class);
    }
316408
def get_instance(self, payload):
        
        return MessageInstance(self._version, payload, session_sid=self._solution['session_sid'], )
1301341
def get_instance(self, payload):
        
        return StepInstance(
            self._version,
            payload,
            flow_sid=self._solution['flow_sid'],
            engagement_sid=self._solution['engagement_sid'],
        )
977466
def get_instance(self, payload):
        
        return MessageInstance(self._version, payload, account_sid=self._solution['account_sid'], )
1324422
public static ExceptionUtil getInstance() {

    if (instance == null) {
      synchronized (ExceptionUtilImpl.class) {
        if (instance == null) {
          instance = new ExceptionUtilImpl();
        }
      }
    }
    return instance;
  }
615759
public B getInstance()
            throws BackendInitializationException, BackendNewInstanceException {
        B backend = backendSpec.newBackendInstance();
        backend.initialize(this);
        return backend;
    }
125628
def _new_instance(self):
        

        new_obj = self.__class__()
        new_obj.class_ = self.class_
        new_obj.tag = self.tag
        new_obj.implicit = self.implicit
        new_obj.explicit = self.explicit
        return new_obj
521750
public static SystemUtil getInstance() {

    if (instance == null) {
      synchronized (SystemUtilImpl.class) {
        if (instance == null) {
          instance = new SystemUtilImpl();
        }
      }
    }
    return instance;
  }
705672
public synchronized Object getInstance()
  {

    // Check if the pool is empty.
    if (freeStack.isEmpty())
    {

      // Create a new object if so.
      try
      {
        return objectType.newInstance();
      }
      catch (InstantiationException ex){}
      catch (IllegalAccessException ex){}

      // Throw unchecked exception for error in pool configuration.
      throw new RuntimeException(XMLMessages.createXMLMessage(XMLErrorResources.ER_EXCEPTION_CREATING_POOL, null)); //"exception creating new instance for pool");
    }
    else
    {

      // Remove object from end of free pool.
      Object result = freeStack.remove(freeStack.size() - 1);

      return result;
    }
  }
164603
def get_instance(self):
        
        return Instance(self.rest_client.make_request(self.instance), self.rest_client)
656763
def instance(self, *args, **kwargs):
        
        mod, cls = self.get_module_class()
        inst = cls(*args, **kwargs)
        logger.debug(f'inst: {inst}')
        return inst
784665
def get_instance(self, payload):
        
        return AddressInstance(self._version, payload, account_sid=self._solution['account_sid'], )
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;
    }
1036403
def load(self):
        
        javabridge.call(self.jobject, "reset", "()V")
        return Instances(javabridge.call(self.jobject, "getDataSet", "()Lweka/core/Instances;"))
655136
def new_instance(self, name):
        
        ist = lib.EnvCreateRawInstance(self._env, self._cls, name.encode())
        if ist == ffi.NULL:
            raise CLIPSError(self._env)

        return Instance(self._env, ist)