/* (non-Javadoc)
@see com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler#getControlHandler(com.ibm.ws.sib.common.ProtocolType, com.ibm.ws.sib.trm.topology.Cellule)
546465
public ControlHandler getControlHandler(ProtocolType type, SIBUuid8 sourceCellule)
  {
    throw new InvalidOperationException(
      nls.getFormattedMessage(
          "INTERNAL_MESSAGING_ERROR_CWSIP0005",
          new Object[] {
            "com.ibm.ws.sib.processor.proxyhandler.BusGroup",
            "1:651:1.54",
            getName() },
          null));
  }
303468
function(oControl) {
			var oAppComponent = Utils.getAppComponentForControl(oControl);
			var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
			var oRootControl = oAppComponent.getRootControl();
			var oView = Utils.getViewForControl(oControl);
			var oVariantModel = oAppComponent.getModel("$FlexVariants");

			var mParams = {
				rootControl : oRootControl,
				view : oView,
				variantModel : oVariantModel,
				variantManagement : {},
				flexController: oFlexController
			};
			var oVMControl;
			var aForControlTypes;

			jQuery.makeArray(mParams.rootControl.$().find(".sapUiFlVarMngmt")).map(function(oVariantManagementNode) {
				oVMControl = sap.ui.getCore().byId(oVariantManagementNode.id);
				if (oVMControl.getMetadata().getName() === "sap.ui.fl.variants.VariantManagement") {
					aForControlTypes = oVMControl.getFor();
					aForControlTypes.forEach(function(sControlType) {
						mParams.variantManagement[sControlType] = mParams.variantModel.getLocalId(oVariantManagementNode.id, oAppComponent);
					});
				}
			});

			return mParams;
		}
428973
public Object getControlValue()
    {
        String strValue = this.getName();
        int iValue = 0;
        try   {
            iValue = Integer.parseInt(strValue);
        } catch (NumberFormatException ex)  {
        }
        return new Integer(iValue);
    }
396872
@Override
  public <T> EventHandler<T> getHandler(
      final RemoteIdentifier destinationIdentifier, final Class<? extends T> messageType) {

    if (LOG.isLoggable(Level.FINE)) {
      LOG.log(Level.FINE, "RemoteManager: {0} destinationIdentifier: {1} messageType: {2}",
          new Object[] {this.name, destinationIdentifier, messageType.getCanonicalName()});
    }

    return new ProxyEventHandler<>(this.myIdentifier, destinationIdentifier,
        "default", this.reSendStage.<T>getHandler(), this.seqGen);
  }
381844
public final ControlMessageType getControlMessageType() {
    /* Get the subtype then get the corresponding ControlMessageType to return  */
    Byte mType = (Byte)jmo.getField(ControlAccess.SUBTYPE);
    return ControlMessageType.getControlMessageType(mType);
  }
1179313
public function getControlHandler() {
		if ($this->_controlHandler === null) {
			if ($this->hasLocator() && $this->getLocator()->has($this->_controlHandlerServiceId)) {
				$this->_controlHandler = $this->getLocator()->get($this->_controlHandlerServiceId);
				
				if (! $this->_controlHandler instanceof ControlHandlerInterface) {
					throw new RuntimeException('Pagination control handler must implement "ControlHandlerInterface"');
				}
			} else {
				$this->_controlHandler = new Sliding();
			}
		}
		
		return $this->_controlHandler;
	}
602857
public void createControlAdapter()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "createControlAdapter");
    
    DestinationHandler dh = null;
    try
    {
      ItemStream is = getItemStream();
      
      // TODO - This method is using the wrong itemstream
  
      dh = ((AOProtocolItemStream) is).getDestinationHandler();
      SIMPMessage msg = (SIMPMessage) is.findById(msgId);
      controlAdapter = new QueuedMessage(msg,dh,is);
    }
    catch(Exception e)
    {
      // FFDC
      FFDCFilter.processException(
          e,
          "com.ibm.ws.sib.processor.impl.store.items.AOValue.createControlAdapter",
          "1:371:1.28.1.5",
          this);  
                  
      SibTr.exception(tc, e); 
    }
         
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "createControlAdapter");
  }
904769
static String getDefaultControlBinding(Class controlIntf)
    {
        controlIntf = getMostDerivedInterface(controlIntf);

        ControlInterface intfAnnot =
                    (ControlInterface)controlIntf.getAnnotation(ControlInterface.class);
        String implBinding = intfAnnot.defaultBinding();
        implBinding = resolveDefaultBinding( implBinding, controlIntf.getName() );

        return implBinding;
    }
429664
public AptControlInterface getControlInterface()
    {
        if (_controlIntf == null)
        {
            _controlIntf = initControlInterface();
            if (_controlIntf != null)
                initTypeParameterBindings();
        }
        return _controlIntf;
    }
441049
@Override
    public TargetStreamControl getControlAdapter()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getControlAdapter");

        if (targetStreamControl == null)
            targetStreamControl =
                            new TargetStreamControl(remoteEngineUUID, this, streamSet.getStreamID(),
                                            getReliability(), getPriority());

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getControlAdapter", targetStreamControl);
        return targetStreamControl;
    }
758469
public <T extends Annotation> T
        getControlAnnotation(Class<T> annotationClass)
    {
        Class controlInterface = getControlType();
        return (T)controlInterface.getAnnotation(annotationClass);
    }
1327314
public static ProcessorActionHandler getHandler(ProcessorAction action) {
        ProcessorActionHandler ret = null;
        Class<? extends ProcessorActionHandler> cls = handlers.get(action.getClass());
        if (cls != null) {
            try {
                Constructor<? extends ProcessorActionHandler> con = cls.getConstructor(ProcessorAction.class);
                ret = con.newInstance(action);
            } catch (Exception e) {
                log.log(Level.SEVERE, "Failed to instantiate handler for action '" + action + "'", e);
            }
        }
        return ret;
    }
635678
public IScopeHandler getHandler() {
        log.trace("getHandler from {}", name);
        if (handler != null) {
            return handler;
        } else if (hasParent()) {
            return getParent().getHandler();
        } else {
            return null;
        }
    }
368157
@Override
    public final synchronized AnycastOutputHandler getAnycastOutputHandler(DestinationDefinition definition,
                                                                           boolean restartFromStaleBackup)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc,
                        "getAnycastOutputHandler",
                        new Object[] {
                                      definition,
                                      Boolean.valueOf(restartFromStaleBackup),
                                      this });

        AnycastOutputHandler anycastOutputHandler =
                        _remoteSupport.getAnycastOutputHandler(definition, restartFromStaleBackup);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getAnycastOutputHandler", anycastOutputHandler);

        return anycastOutputHandler;
    }
895214
@Override
	public HttpCommandProcessor getCommandProcessor(Protocol protocol) {
		String commandProcessorName = commandProcessorNames.get(protocol);

        if (commandProcessorName == null) {
			throw new PanicInTheCougar("No HTTP Command Processor has been configured for protocol " + protocol);
        }

        HttpCommandProcessor commandProcessor = (HttpCommandProcessor)applicationContext.getBean(commandProcessorName);

        if (commandProcessor == null) {
			throw new PanicInTheCougar("No HTTP Command Processor has been configured for the name " + commandProcessorName);
        }

		return commandProcessor;
	}
928027
public static com.google.gwt.event.shared.GwtEvent.Type<I_CmsToggleHandler> getType() {

        if (TYPE == null) {
            TYPE = new Type<I_CmsToggleHandler>();
        }
        return TYPE;
    }
1338236
private static RLSController getRLSController() throws RecoveryLogServiceException
	{
    	if (tc.isEntryEnabled()) Tr.entry(tc, "getRLSController");
        
    	RLSController retVal = null;
    	
    	if (_rlsController == null)
    	{
    		try
			{
    			retVal = RLSControllerFactory.getRLSController();
			}
    		catch (Exception exc)
			{
            	FFDCFilter.processException(exc, "com.ibm.ws.recoverylog.spi.RecoveryLogService.getRLSController", "115");
                if (tc.isEventEnabled()) Tr.event(tc, "Rethrow as RecoveryLogServiceException");
            	if (tc.isEntryEnabled()) Tr.exit(tc, "getRLSController");
            	throw new RecoveryLogServiceException(exc);
			}
    	}
    	
    	if (tc.isEntryEnabled()) Tr.exit(tc, "getRLSController", retVal);
    	
    	return retVal;
	}