/*
(non-Javadoc)

@see com.ibm.wsspi.sib.core.SICoreConnection#getMeUuid()
776161
@Override
    public String getMeUuid()
    {
        if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
            SibTr.entry(CoreSPIConnection.tc, "getMeUuid", this);

        // get the meuuid from the messaging engine instead of messageprocessor
        // When ME is stopping connection events are sent to MDB and MDB tries to connect 
        // to ME. Earlier messageprocessor.getmessagingengineuuid() was being called but
        // leads to NPE because messageprocessor.getmessagingengineuuid() gets the uuid from persistent
        // store is stopped(null) by now
        SIBUuid8 meUUID = new SIBUuid8(_messageProcessor.getMessagingEngine().getUuid());

        if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
            SibTr.exit(CoreSPIConnection.tc, "getMeUuid", meUUID);

        return meUUID.toString();
    }
807254
public SIBUuid8 getReplyingMeUuid() {
    byte[] b = (byte[])jmo.getField(TrmFirstContactAccess.BODY_MELINKREPLY_REPLYINGMEUUID);
    if (b != null)
      return new SIBUuid8(b);
    return null;
  }
421430
protected UUID getRequestIdFrom(Request request, Response response) {
        return optUuid(response.getHeader(OTHeaders.REQUEST_ID));
    }
833371
public SIBUuid8 getRemoteMEUuid(SIBUuid12 linkUuid) throws SIResourceException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getRemoteMEUuid", linkUuid);
       
    LinkSelection s = null;
    SIBUuid8 remoteMEUuid = null;
    
    s = _localisationManager.
          getTRMFacade().
            chooseLink(linkUuid);
 
    //If the link is not available in WLM return null as we don't know where to send this 
    if (s == null)
    {
      remoteMEUuid = null;
    }
    else
    {
      remoteMEUuid = s.getInboundMeUuid();
    } 
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
       SibTr.exit(tc, "getRemoteMEUuid", remoteMEUuid);
         
    return remoteMEUuid;
  }
606117
public static Form get(final UUID _uuid)
        throws CacheReloadException
    {
        return AbstractUserInterfaceObject.<Form>get(_uuid, Form.class, CIAdminUserInterface.Form.getType());
    }
876535
@Override
    public SIBUuid12 getConnectionUuid() {
        byte[] b = (byte[]) getApi().getField(JsApiAccess.CONNECTIONUUID_VALUE);
        if (b != null)
            return new SIBUuid12(b);
        return null;
    }
699262
public UUID toUuid() {
        if (mValue.length != 16) {
            throw new UnsupportedOperationException("Only Identifiers backed by a byte array with length of exactly 16 can be UUIDs.");
        }
        LongBuffer buf = ByteBuffer.wrap(mValue).asLongBuffer();
        return new UUID(buf.get(), buf.get());
    }
1281804
@Basic
    @Column(name = "UIDENT", unique = true, nullable = false, length=255)
    public String getUid()
    {
        return this.uid;
    }
340837
public String getId() {
        if (id == null) {
            if (isValid()) {
                id = getProperty(ResourceUtil.PROP_UUID);
            }
            if (StringUtils.isBlank(id)) {
                id = Base64.encodeBase64String(getPath().getBytes(MappingRules.CHARSET));
            }
        }
        return id;
    }
1346899
public String getRemoteEngineUuid()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getRemoteEngineUuid");
      
    String remoteMEId = aoBrowserSession.getKey().getRemoteMEUuid().toString();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getRemoteEngineUuid", remoteMEId);
    return remoteMEId;
  }
1096419
public T get(final UUID _uuid)
    {
        return getCache4UUID() == null ? null : getCache4UUID().get(_uuid);
    }
81108
public static UUID uuid() {
    @javax.annotation.Nonnull String index = Integer.toHexString(com.simiacryptus.util.Util.idcounter.incrementAndGet());
    while (index.length() < 8) {
      index = "0" + index;
    }
    @javax.annotation.Nonnull final String tempId = com.simiacryptus.util.Util.jvmId.substring(0, com.simiacryptus.util.Util.jvmId.length() - index.length()) + index;
    return UUID.fromString(tempId);
  }
380085
public SIBUuid8 mapMeNameToUuid(String name) {
        SIBUuid8 result = null;

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "mapMeNameToUuid", name);

        // Be tolerant of bad args
        if (name != null) {
            // First, short circuit the local ME
            if (name.equals(getMessagingEngineName()))
                result = getMessagingEngineUuid();
            else
                ;// Venu liberty change. Here the code was going to TrmMeMain
        }

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "mapMeNameToUuid", result);

        return result;
    }
1002101
@Override
    public void setConnectionUuid(SIBUuid12 value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setConnectionUuid", value);
        if (value != null)
            getApi().setField(JsApiAccess.CONNECTIONUUID_VALUE, value.toByteArray());
        else
            getApi().setField(JsApiAccess.CONNECTIONUUID_VALUE, null);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setConnectionUuid");
    }
420264
public SIBUuid8 getLocalizingMEUuid()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getLocalizingMEUuid");
      SibTr.exit(tc, "getLocalizingMEUuid", messagingEngineUuid);
    }
    
    return messagingEngineUuid;
  }
168904
public String getQuuid() {
    if (InputElement_Type.featOkTst && ((InputElement_Type)jcasType).casFeat_quuid == null)
      jcasType.jcas.throwFeatMissing("quuid", "edu.cmu.lti.oaqa.framework.types.InputElement");
    return jcasType.ll_cas.ll_getStringValue(addr, ((InputElement_Type)jcasType).casFeatCode_quuid);}
764064
@Override
    public String getClientID() throws JMSRuntimeException {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getClientID");

        String clientId = null;
        try {
            clientId = jmsConnection.getClientID();
        } catch (JMSException jmse) {
            throw (JMSRuntimeException) JmsErrorUtils.getJMS2Exception(jmse, JMSRuntimeException.class);
        } finally {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "getClientID", new Object[] { clientId });
        }

        return clientId;
    }