/* (non-Javadoc)
@see com.ibm.ws.sib.processor.runtime.SIMPForeignDestinationControllable#getForeignDestinationDefinition()
557116
public DestinationForeignDefinition getForeignDestinationDefinition()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getForeignDestinationDefinition");
    DestinationForeignDefinition definition = 
      (DestinationForeignDefinition) foreignDest.getDefinition();   
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getForeignDestinationDefinition");
    return definition;
  }
1090433
@Override
    public String getApplicationDescription() {
        final StringBuilder bldr = new StringBuilder();
        bldr.append("Merges proto-networks into a composite network and ");
        bldr.append("equivalences term references across namespaces.");
        return bldr.toString();
    }
719615
@SuppressWarnings("unchecked")
    public Declaration getDeclaration(final String identifier) {
        if ( this.dirty || (this.declarations == null) ) {
            this.declarations = this.getExtendedLhs( this, null ).getOuterDeclarations();
            this.dirty = false;
        }
        return this.declarations.get( identifier );
    }
201844
@Override
	public List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId,
		boolean skuContributor) {
		return findByC_SC(CPDefinitionId, skuContributor, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1262386
public BaseDestinationDefinition getSIBDestination(String busName,
			String name) throws SIBExceptionBase,
			SIBExceptionDestinationNotFound {
		return getDestinationCache().getSIBDestination(busName, name);
	}
972845
@Override
    public PortletApplicationDefinition getParentPortletApplicationDescriptor(
            IPortletDefinitionId portletDefinitionId) {
        final IPortletDefinition portletDefinition = this.getPortletDefinition(portletDefinitionId);
        if (portletDefinition == null) {
            return null;
        }

        final Tuple<String, String> portletDescriptorKeys =
                this.getPortletDescriptorKeys(portletDefinition);

        final PortletRegistryService portletRegistryService =
                this.portalDriverContainerServices.getPortletRegistryService();
        try {
            return portletRegistryService.getPortletApplication(portletDescriptorKeys.first);
        } catch (PortletContainerException e) {
            this.logger.warn(
                    "No portlet application descriptor could be found likely not deployed. For portlet definition: "
                            + portletDefinition,
                    e);
            return null;
        }
    }
1361740
public LocalizationDefinition getDestinationLocalizationDefinition(String destinationUuid) throws SINotPossibleInCurrentConfigurationException 
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getDestinationLocalizationDefinition", destinationUuid);

    checkStarted();
    
    LocalizationDefinition localizationDefinition = null;
    DestinationHandler destinationHandler = null;

    try
    {
      destinationHandler = destinationManager.getDestination(new SIBUuid12(destinationUuid), false);
    }
    catch (SITemporaryDestinationNotFoundException e)
    {
      // No FFDC code needed 
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getDestinationLocalizationDefinition", "SINotPossibleInCurrentConfigurationException");
      throw new SINotPossibleInCurrentConfigurationException(e.getMessage());
    }
    
    if(destinationHandler.isPubSub())
    {
      PubSubMessageItemStream pubSubMessageItemStream = destinationHandler.getPublishPoint();
      if (pubSubMessageItemStream != null)
      {
        localizationDefinition = pubSubMessageItemStream.getLocalizationDefinition();
      }
    }    
    else
    {
      PtoPLocalMsgsItemStream ptoPLocalMsgsItemStream = null;
      
      if ((!destinationHandler.isAlias()) && (!destinationHandler.isForeign()))
      {
        ptoPLocalMsgsItemStream = (PtoPLocalMsgsItemStream) destinationHandler.getQueuePoint(messageProcessor.getMessagingEngineUuid());
        if (ptoPLocalMsgsItemStream != null)
        {
          localizationDefinition = ptoPLocalMsgsItemStream.getLocalizationDefinition();
        }
      }
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getDestinationLocalizationDefinition", localizationDefinition);
     
    //TODO - return clone.  Cant do till admin implement clone() method (168499.21)
      
    return localizationDefinition;
  }
276444
public String getExceptionDestination()
  {    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getExceptionDestination"); 
    
    String exDest = definition.getExceptionDestination();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getExceptionDestination", exDest); 
    
    return exDest;
  }
601506
public String getDestinationName() {
        String out = destinationName;
        if (out == null)
            out = getName() + ".jar";
        return out;
    }
1348903
public JsDestinationAddress getRoutingDestination() {
        String name = (String) getHdr2().getField(JsHdr2Access.ROUTINGDESTINATION_VALUE_NAME);
        /* If the name is null, the RoutingDestination has never been set. */
        if (name != null) {
            byte[] b = (byte[]) getHdr2().getField(JsHdr2Access.ROUTINGDESTINATION_VALUE_MEID);
            return new JsDestinationAddressImpl(name
                            , false
                            , (b == null) ? null : new SIBUuid8(b)
                            , (String) getHdr2().getField(JsHdr2Access.ROUTINGDESTINATION_VALUE_BUSNAME));
        }
        else {
            return null;
        }
    }
849862
public DestinationDefinition createDestinationDefinition(
                                                             DestinationType destinationType, String destinationName) {
        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "createDestinationDefinition", new Object[] {
                                                                         destinationType, destinationName });

        JsAdminFactory factory = (JsAdminFactory) getSingletonInstance(SIMPConstants.JS_ADMIN_FACTORY);

        DestinationDefinition destDef = factory.createDestinationDefinition(
                                                                            destinationType, destinationName);

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "createDestinationDefinition", destDef);

        return destDef;
    }
793169
public String getDescriptionFirstSentence() {
        FeatureDescriptor fd = getFeatureDescriptor();
        if (fd == null) {
            return "";
        }

        return getTeaToolsUtils().getDescriptionFirstSentence(fd);
    }
328680
public String getDestinationPath() {

        if (m_destinationPath == null) {
            m_destinationPath = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebApplication(
                m_configuredDestination);
        }
        return m_destinationPath;
    }
543202
public long getDestinationHighMsgs()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getDestinationHighMsgs");
  
    long destHighMsgs = 0;
    if(xmitPointControl != null)
    {
      destHighMsgs = xmitPointControl.getDestinationHighMsgs();
    } 
  
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getDestinationHighMsgs", new Long(destHighMsgs));
  
    return destHighMsgs ;
  }
662050
public final SIBUuid12 getGuaranteedTargetDestinationDefinitionUUID() {
    byte[] b = (byte[])jmo.getField(ControlAccess.TARGETDESTDEFUUID);
    if (b != null)
      return new SIBUuid12(b);
    return null;
  }
462620
@Override
    public DestinationType getDestinationType()
    {
        if (tc.isEntryEnabled())
            SibTr.entry(tc, "getDestinationType");

        DestinationType dt = getTarget().getDestinationType();

        if (tc.isEntryEnabled())
            SibTr.exit(tc, "getDestinationType", dt);

        return dt;
    }
963060
@Override
    public String getDestination(String task) {
        MappingConfig config = rdbMapping.get(task);
        if (config != null) {
            return config.getDestination();
        }
        return null;
    }