Push the current setting on to the stack and adopt the new setting supplied.
<p>
@param jsme JsMessagingEngine
336016
@SuppressWarnings("unchecked")
  public static void push (Object jsme) {

    // Messing around required to avoid this build component placing a
    // dependency on the Admin JsMessagingEngine class

    Class klass = jsme.getClass();

    try {
      Method getBusName = klass.getMethod("getBusName",new Class[]{});
      Method getName = klass.getMethod("getName",new Class[]{});

      String bus = (String)getBusName.invoke(jsme);
      String name = (String)getName.invoke(jsme);

      threadLocalStack.push(bus + ":" + name);

    } catch (Exception e) {
      // No FFDC code needed
      exception(Tr.register(SibTr.class,"", ""),e);
    }
  }
71600
public void updateCmsObject(CmsObject cms) {

        try {
            m_cms = OpenCms.initCmsObject(cms);
        } catch (CmsException e) {
            LOG.error(e.getLocalizedMessage(), e);
            m_cms = cms;
        }
    }
140198
final void setMaster() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            JmfTr.entry(this, tc, "setMaster");

        synchronized (getMessageLockArtefact()) {
            master = compatibilityWrapperOrSelf;
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            JmfTr.exit(this, tc, "setMaster");
    }
1055188
private void push(JSONObject jo) throws JSONException {
    if (this.top >= maxdepth) {
      throw new JSONException("Nesting too deep.");
    }
    this.stack[this.top] = jo;
    this.mode = jo == null ? 'a' : 'k';
    this.top += 1;
  }
544810
public void pushStylesheet(Stylesheet s)
  {

    if (m_stylesheets.size() == 0)
      m_stylesheetRoot = (StylesheetRoot) s;

    m_stylesheets.push(s);
  }
604356
@Override
    public final void setJmsDestination(byte[] value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setJmsDestination", value);
        /* There is no need to take a copy because the JMS API layer will never */
        /* change the byte array passed in. */
        getHdr2().setField(JsHdr2Access.JMSDESTINATION_DATA, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setJmsDestination");
    }
1355078
final void push(UniCompletion<?,?> c) {
        if (c != null) {
            while (result == null && !tryPushStack(c))
                lazySetNext(c, null); // clear on failure
        }
    }
669862
public synchronized void messagingEngineInitializing(
            final JsMessagingEngine messagingEngine) {

        final String methodName = "messagingEngineInitializing";
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName, messagingEngine);
        }

        if (_remoteMessagingEngine
                && messagingEngine.getBusName().equals(
                        _endpointConfiguration.getBusName())) {

            /*
             * A remote connection is no longer required. Stop any timers
             * attempting to connect and close any existing remote connection.
             */

            SibTr.info(TRACE, "ME_INITIALIZING_CWSIV0778", new Object[] {
                    messagingEngine.getName(),
                    _endpointConfiguration.getBusName(), this });

            _remoteMessagingEngine = false;
            if (_remoteConnection != null) {
                _remoteConnection.close();
            }
            _timer.cancel();

        }

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.exit(this, TRACE, methodName);
        }

    }
1215179
private void addSettingsValues(
        CmsEntity entity,
        CmsContainerElementBean containerElement,
        List<I_CmsFormatterBean> nestedFormatters) {

        entity.addAttributeValue(SETTINGS_CLIENT_ID_ATTRIBUTE, containerElement.editorHash());
        for (Entry<String, String> settingEntry : containerElement.getIndividualSettings().entrySet()) {
            boolean nested = false;
            if (nestedFormatters != null) {
                for (I_CmsFormatterBean formatter : nestedFormatters) {
                    if (settingEntry.getKey().startsWith(formatter.getId())) {
                        String nestedSettingAttributeName = getSettingsAttributeName(formatter.getId());
                        CmsEntity nestedEntity = null;
                        CmsEntityAttribute attribute = entity.getAttribute(nestedSettingAttributeName);
                        if (attribute != null) {
                            nestedEntity = attribute.getComplexValue();
                        } else {
                            nestedEntity = new CmsEntity(nestedSettingAttributeName + "[1]", formatter.getId());
                            entity.addAttributeValue(nestedSettingAttributeName, nestedEntity);
                        }
                        nestedEntity.addAttributeValue(
                            getSettingsAttributeName(settingEntry.getKey()),
                            settingEntry.getValue());
                        nested = true;
                        break;
                    }
                }
            }
            if (!nested) {
                entity.addAttributeValue(getSettingsAttributeName(settingEntry.getKey()), settingEntry.getValue());
            }

        }
    }
952109
@SuppressWarnings("unchecked")
    public void setSettings(Object presets) {

        if (presets == null) {
            m_settingPresets = null;
        } else if (!(presets instanceof Map)) {
            throw new IllegalArgumentException(
                "cms:container -- value of 'settings' attribute  should be a map, but is "
                    + ClassUtils.getCanonicalName(presets));
        } else {
            m_settingPresets = new HashMap<>((Map<String, String>)presets);
        }
    }
292211
public void setSS(java.util.Collection<String> sS) {
        if (sS == null) {
            this.sS = null;
            return;
        }

        this.sS = new java.util.ArrayList<String>(sS);
    }
840490
@Override
    public void initialize(JsMessagingEngine engine) throws Exception {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "initialize", engine);

        // Get the admin factory class
        try {
            jsaf = JsAdminFactory.getInstance();
        } catch (Exception e) {
            // No FFDC code needed
        }

        // Synchronize on stateChangeLock to manage the startup of the engine with
        // potential addition of new engine components via dynamic config.
//        processor = _mainImpl.mpService.getService().getInstance();
        ListIterator<ComponentList> li = null;
        boolean initializationFailed = false;

        synchronized (stateChangeLock) {

            setState(STATE_INITIALIZING);
            for (int i = 0; i < NUM_STOP_PHASES; i++)
            {
                stopSequence[i] = new Vector<ComponentList>();
            }
            try
            {
                _messageStore = JsMainAdminComponentImpl.messageStoreRef.getService();

            } catch (Exception e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }

            _messageProcessor = loadClass(JsConstants.SIB_CLASS_MP, STOP_PHASE_1, true);

            // Initialize any engine components
            initializationFailed = false;

        } // synchronized(stateChangeLock)
        try {
            //Initialize the message store 
            _messageStore.initialize(this);
            //Initialize the message processor 
            _messageProcessor.initialize(this);
            setState(STATE_INITIALIZED);
        } catch (Exception e) {
            com.ibm.ws.ffdc.FFDCFilter.processException(e, CLASS_NAME + ".<init>", "625", this);
            SibTr.error(tc, "ME_CANNOT_BE_INITIALIZED_SIAS0033", new Object[] { _name, "MessageProcessor.java", "initialize()" });
            SibTr.exception(tc, e);
            initializationFailed = true;

        }
        if (initializationFailed) {
            destroy();
            // Cleanup finished...
            // Change state to UNINITIALIZED
            setState(STATE_UNINITIALIZED);
        } else {
            setState(STATE_INITIALIZED);
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "initialize");
    }
716923
@Override
    public void initialize(JsMessagingEngine engine) {
        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "initialize", engine);

        this._engine = engine;

        //Venu mock mock
        //This is needed for MELockOwner in PersistentMessageStoreImpl' initialize. However the MELockOwer object not really relevant
        // as uuid check is disabled in PersistentMessageStoreImpl
        // In case of warm start, after reconstiturion _engine Messaging Engine Uuid is reset from restored Uuid
        this._engine.setMEUUID(new SIBUuid8());

        _mpio = new MPIO(this);

        _meFactories = new HashMap<String, Object>();
        try {
            _meFactories.put(SIMPConstants.JS_MBEAN_FACTORY, engine.getMBeanFactory());
        } catch (Exception e) {

            // FFDC
            FFDCFilter.processException(
                                        e,
                                        "com.ibm.ws.sib.processor.impl.MessageProcessor.initialize",
                                        "1:1202:1.445",
                                        this);

            SIErrorException finalE =
                            new SIErrorException(
                                            nls.getFormattedMessage(
                                                                    "INTERNAL_MESSAGING_ERROR_CWSIP0002",
                                                                    new Object[] { "com.ibm.ws.sib.processor.impl.MessageProcessor", "1:1209:1.445", e },
                                                                    null),
                                            e);

            SibTr.exception(tc, finalE);
            SibTr.error(tc, "INTERNAL_MESSAGING_ERROR_CWSIP0002",
                        new Object[] { "com.ibm.ws.sib.processor.impl.MessageProcessor", "1:1215:1.445", SIMPUtils.getStackTrace(e) });

            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(tc, "initialize", finalE);

            throw finalE;

        }

        // Obtain instances of all singleton factories to be used in mp.
        // Initialize is the only place we can get the instance and handle
        // and exceptions correctly.

        if (_factories == null) {
            _factories = new HashMap<String, Object>();
            try {
                _factories.put(SIMPConstants.JS_DESTINATION_ADDRESS_FACTORY,
                               JsMainAdminComponentImpl.getSIDestinationAddressFactory());
                _factories.put(SIMPConstants.SI_DESTINATION_ADDRESS_FACTORY,
                               JsMainAdminComponentImpl.getSIDestinationAddressFactory());
                _factories.put(SIMPConstants.CONTROL_MESSAGE_FACTORY,
                               ControlMessageFactory.getInstance());
                _factories.put(SIMPConstants.JS_ADMIN_FACTORY, JsAdminFactory
                                .getInstance());

                // Matching instance
                _factories.put(SIMPConstants.MATCHING_INSTANCE, Matching
                                .getInstance());

                // SelectionCriteria
                _factories.put(SIMPConstants.JS_SELECTION_CRITERIA_FACTORY,
                               JsMainAdminComponentImpl.getSelectionCriteriaFactory());

                _factories.put(SIMPConstants.JS_MESSAGE_HANDLE_FACTORY,
                               JsMessageHandleFactory.getInstance());
            } catch (Exception e) {
                // FFDC
                FFDCFilter
                                .processException(
                                                  e,
                                                  "com.ibm.ws.sib.processor.impl.MessageProcessor.initialize",
                                                  "1:1261:1.445", this);

                SIErrorException finalE = new SIErrorException(
                                nls
                                                .getFormattedMessage(
                                                                     "INTERNAL_MESSAGING_ERROR_CWSIP0002",
                                                                     new Object[] {
                                                                                   "com.ibm.ws.sib.processor.impl.MessageProcessor",
                                                                                   "1:1268:1.445", e }, null), e);

                SibTr.exception(tc, finalE);
                SibTr
                                .error(
                                       tc,
                                       "INTERNAL_MESSAGING_ERROR_CWSIP0002",
                                       new Object[] {
                                                     "com.ibm.ws.sib.processor.impl.MessageProcessor",
                                                     "1:1274:1.445",
                                                     SIMPUtils.getStackTrace(e) });

                if (TraceComponent.isAnyTracingEnabled()
                    && tc.isEntryEnabled())
                    SibTr.exit(tc, "initialize", finalE);

                throw finalE;
            }
        }
        // Determine if messages on deleted destinations should be discarded
        // _discardMsgsAfterQueueDeletion =
        // (_engine.getBus()).getBoolean(CT_SIBus.DISCARDMSGSAFTERQUEUEDELETION_NAME,
        // CT_SIBus.DISCARDMSGSAFTERQUEUEDELETION_DEFAULT);

        // Venu temp
        // this property is not configured in Libery profile and Admin has not
        // exposed this...
        // so hardcoding to false.
        _discardMsgsAfterQueueDeletion = false;

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "initialize");
    }
354435
private synchronized void setService( final T newService )
    {
        if( m_service != newService )
        {
            LOG.debug( "Service changed [" + m_service + "]  -> [" + newService + "]" );
            final T oldService = m_service;
            m_service = newService;
            if( m_serviceListener != null )
            {
                m_serviceListener.serviceChanged( oldService, m_service );
            }
        }
    }
1152874
void setMemo(String production, int position, int line, final MemoEntry stackElement) {
	Map<String, MemoEntry> map = memo.get(position);
	if (map == null) {
	    map = new HashMap<String, MemoEntry>();
	    memo.put(position, map);
	    map.put(production, stackElement);
	} else {
	    if (map.containsKey(production)) {
		throw new RuntimeException("We should not set a memo twice. Modifying is needed afterwards.");
	    }
	    map.put(production, stackElement);
	}
    }
1336115
public void setStackFromEnd(boolean stackFromEnd) {
        if (mPendingSavedState != null && mPendingSavedState.mStackFromEnd != stackFromEnd) {
            // override pending state
            mPendingSavedState.mStackFromEnd = stackFromEnd;
        }
        if (mStackFromEnd == stackFromEnd) {
            return;
        }
        mStackFromEnd = stackFromEnd;
        requestLayout();
    }
157950
@Override
    protected  void pushToSystem(HashMap<String, Object> cacheData, int supportedActions) {
        MouseInput.getInstance().notifyDragStart();
        ((MonocleApplication) Application.GetApplication()).enterDnDEventLoop();
        actionPerformed(Clipboard.ACTION_COPY_OR_MOVE);
    }