Get Jetstream ME name to be printed in trace message

@param o The object whose identityHashCode should also be appended
@return the Name of messaging engine if set, default name otherwise
175258
public static String getMEName(Object o) {
        String meName;

    if (!threadLocalStack.isEmpty()) {
      meName = threadLocalStack.peek();
    } else {
      meName = DEFAULT_ME_NAME;
    }

    String str = "";

    if (o != null) {
      str = "/" + Integer.toHexString(System.identityHashCode(o));
    }
  // Defect 91793 to avoid SIBMessage in Systemout.log starting with [:] 
    return "";
  }
1315236
private static ObjectName getObjectName(Cache<?, ?> cache, MBeanType type) {
    String cacheManagerName = sanitize(cache.getCacheManager().getURI().toString());
    String cacheName = sanitize(cache.getName());

    try {
      String name = String.format("javax.cache:type=Cache%s,CacheManager=%s,Cache=%s",
          type, cacheManagerName, cacheName);
      return new ObjectName(name);
    } catch (MalformedObjectNameException e) {
      String msg = String.format("Illegal ObjectName for cacheManager=[%s], cache=[%s]",
          cacheManagerName, cacheName);
      throw new CacheException(msg, e);
    }
  }
213522
function todo_name_me() {
    var args = process_signature(arguments)
    var opts = merge({}, base_defaults, args.overrides)
    return f.apply(null, [opts, args.cb])
  }
74067
public String getName()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getName");
    
    String name = foreignDest.getName();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getName", name);
    
    return name;

  }
1154605
public AnycastOutputHandler getAnycastOHForPseudoDest(String destName)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "getAnycastOHForPseudoDest", destName);
        AnycastOutputHandler returnAOH =
                        _pubSubRealization.
                                        getRemotePubSubSupport().
                                        getAnycastOHForPseudoDest(destName);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getAnycastOHForPseudoDest", returnAOH);
        return returnAOH;

    }
568581
private String getDatastreamId(DigitalObject obj, Entry entry) {
        String entryId = entry.getId().toString();
        // matches info:fedora/pid/dsid/timestamp
        Pattern pattern =
                Pattern.compile("^" + Constants.FEDORA.uri + ".+?/([^/]+)/?.*");
        Matcher matcher = pattern.matcher(entryId);

        if (matcher.find()) {
            return matcher.group(1);
        } else {
            return obj.newDatastreamID();
        }
    }
575630
public static String toClassName(Object o) {
        if (o instanceof String)  {
            return (String) o;
        } else if (o instanceof ClassRef) {
           return  ((ClassRef) o).getFullyQualifiedName();
        } else if (o instanceof TypeDef) {
           return ((TypeDef) o).getFullyQualifiedName();
        } else {
            return String.valueOf(o);
        }
    }
1330654
def get_method_name(method):
    

    name = get_object_name(method)
    if name.startswith("__") and not name.endswith("__"):
        name = "_{0}{1}".format(get_object_name(method.im_class), name)
    return name
923098
@Trivial
    public static Tracer getTracer() {
        String methodName = "getTracer";
        if ( TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled() ) {
            Tr.entry(tc, methodName);
        }

        OpentracingContext tracerContext = getOpentracingContext();
        // Should never be null.  The thread local variable provides
        // a non-null initial value.

        String appName = tracerContext.getAppName();
        Tracer tracer = tracerContext.getTracer();
        String tracerCase;

        // The app name and tracer should always be null when requesting
        // the tracer from a container filter, and should never be null
        // when requesting the tracer from a client filter.

        if ( tracer != null ) {
            tracerCase = "previously stored for " + appName;

        } else {
            appName = OpentracingUtils.lookupAppName();
            tracer = ensureTracer(appName);
            tracerContext.setTracer(appName, tracer);

            tracerCase = "newly stored for " + appName;
        }

        if ( TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled() ) {
            Thread currentThread = Thread.currentThread();
            String threadName = currentThread.getName();
            long threadId = currentThread.getId();
            Tr.exit(tc,
                methodName + " (" + tracerCase + ") in (" + threadName + ":" + Long.toString(threadId) + ")",
                OpentracingUtils.getTracerText(tracer));
        }
        return tracer;
    }
484705
public final String getName() {
        final String methodName = "getName";
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) {
            trace.entry(this, cclass, methodName);
            trace.exit(this, cclass, methodName, new Object[] { storeName });
        }
        return storeName;
    }
1130459
public SIBUuid8 getMessagingEngineUuid()
  {
    if (tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getMessagingEngineUuid");
      SibTr.exit(tc, "getMessagingEngineUuid", messagingEngineUuid);
    }

    return messagingEngineUuid;
  }
781064
public void engineReloaded(Object objectSent) {

    	final JsMessagingEngine engine = (JsMessagingEngine)objectSent;
    	
        final String methodName = "engineReloaded";
        if (TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName, engine);
        }

        RELOADING_MESSAGING_ENGINES.remove(engine.getUuid().toString());

        // Get listeners to notify
        final Set listeners = getListeners(engine.getBusName());

        // Notify listeners
        for (final Iterator iterator = listeners.iterator(); iterator.hasNext();) {

            final SibRaMessagingEngineListener listener = (SibRaMessagingEngineListener) iterator
                    .next();
            listener.messagingEngineReloaded(engine);

        }

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

    }
493070
@FFDCIgnore(NamingException.class)
    private Object resolveJNDIObject(Object o, ServiceReference<?> ref, String[] objectClass, String bindingName, Hashtable<?, ?> envmt) throws Exception {
        if ("jndi".equals(ref.getProperty("osgi.jndi.service.origin")) || contains(objectClass, Reference.class.getName())) {
            try {
                Context context = new InitialContext(envmt);
                Name name = context.getNameParser("").parse(bindingName);
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "calling NamingManager.getObjectInstance", o, name, context, envmt);
                }
                return NamingManager.getObjectInstance(o, name, context, envmt);
            } catch (NamingException e) {
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "ignoring NamingException from NamingManager.getObjectInstance", e);
                }
                return null;
            }
        }

        return o;
    }
173072
@Override
    public String getOEMDomainName () throws SmbException {
        try ( SmbSessionImpl session = this.treeConnection.getSession();
              SmbTransportImpl transport = session.getTransport() ) {
            SmbNegotiationResponse nego = transport.getNegotiateResponse();
            if ( nego instanceof SmbComNegotiateResponse ) {
                return ( (SmbComNegotiateResponse) nego ).getServerData().oemDomainName;
            }
            return null;
        }
    }
55595
public static String getServiceName(MuleEventContext event) {
        // Mule 2.2 implementation
		// Service    service = (event == null)? null : event.getService();
        FlowConstruct service = (event == null)? null : event.getFlowConstruct();
        String        name    = (service == null)?  "" : service.getName();
        return name;
	}
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();
    }
487241
@VisibleForTesting
  String getServiceName() {
    String simpleName = interfaceClass.getSimpleName();
    return simpleName.substring(0, simpleName.indexOf("Interface"));
  }