/* (non-Javadoc)
@see javax.servlet.ServletRequest#getLocalName()
505725
public String getLocalName() {
        if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
            checkRequestObjectInUse();
        }
        // 321485
        String name = this._request.getLocalName();
        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"getLocalName", " name --> " + name);
        }
        return name;
    }
1355365
public <T> T getLocal (Class<T> key)
    {
        for (Object attr : _locattrs) {
            if (key.isInstance(attr)) {
                return key.cast(attr);
            }
        }
        return null;
    }
961483
public static String getHostName() {
        try {
            return java.net.InetAddress.getLocalHost().getHostName();
        } catch (java.net.UnknownHostException _ex) {
            return null;
        }
    }
1018140
public static String getLocalProperty(final String key) {
        String ret = localProps.getProperty(key);
        if (StringUtils.isBlank(ret)) {
            return ret;
        }

        ret = replaceEnvVars(ret);

        return ret;
    }
300770
public static String getLocalHostName() {
		try {
			InetAddress addr = InetAddress.getLocalHost();
			return addr.getHostName();
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}
		return null;
	}
411383
public static JavacConfig getLocalConfig()
  {
    JavacConfig config;

    config = _localJavac.get();

    if (config != null)
      return config;
    else
      return new JavacConfig();
  }
75673
public String toLocal(Principal principal) {
        // This technically does not conform with rfc1964, but should work so
        // long as you don't have any really odd names in your KDC.
        return principal == null ? null : principal.getName().split("[/@]")[0];
    }
1342827
protected String getLocalPart(String qname) {
        int colon = qname.indexOf(":");
        return (colon == -1) ? qname : qname.substring(colon + 1);
    }
711883
public Attribute getAttributeByLocalName(CharSequence name) {
		for (Attribute attr : event.attributes)
			if (attr.localName.equals(name))
				return attr;
		return null;
	}
359973
public static String getLocalHostName() throws SocketException, UnknownHostException {
        try {
            final String canonicalHostName = InetAddress.getLocalHost().getCanonicalHostName();
            if (isFQDN(canonicalHostName)) {
                return canonicalHostName;
            } else {
                return InetAddress.getLocalHost().getHostName();
            }
        } catch (UnknownHostException e) {
            NetworkInterface networkInterface = NetworkInterface.getNetworkInterfaces().nextElement();
            if (networkInterface == null)
                throw e;
            InetAddress ipAddress = networkInterface.getInetAddresses().nextElement();
            if (ipAddress == null)
                throw e;
            return ipAddress.getHostAddress();
        }
    }
659828
@Override
    public String getProducerPreferLocal() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getProducerPreferLocal");

        String producerPreferLocal = (String) properties.get(PRODUCER_PREFER_LOCAL);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getProducerPreferLocal", producerPreferLocal);
        return producerPreferLocal;
    }
1217195
protected Object getElementName(String namespaceURI, String localName, String qName) {
        String name = localName;
        String prefix = "";
        if ((name == null) || (name.length() < 1)) {
            name = qName;
        }
        if (namespaceURI == null || namespaceURI.length() <= 0) {
            return name;
        }
        if (qName != null && qName.length() > 0 && namespaceAware) {
            int index = qName.lastIndexOf(":");
            if (index > 0) {
                prefix = qName.substring(0, index);
            }
        }
        return new QName(namespaceURI, name, prefix);
    }
834058
public String getLocalName(int index) {
    if (index < 0 || index >= indexSet.size())
      return null;
    return attributes.getLocalName(indexSet.get(index));
  }
887647
public static String getLocalImplClassName(EnterpriseBean enterpriseBean, boolean isPost11DD) // d114199
    {
        String localInterfaceName = getLocalInterfaceName(enterpriseBean);

        if (localInterfaceName == null) {
            return null;
        }
        String packageName = packageName(localInterfaceName);
        String localName = encodeBeanInterfacesName(enterpriseBean, isPost11DD, true, false, false); //d114199 d147734

        StringBuffer result = new StringBuffer();
        if (packageName != null) {
            result.append(packageName);
            result.append('.');
        }
        result.append(localPrefix);
        result.append(getUniquePrefix(enterpriseBean));
        result.append(localName);

        return result.toString();
    }
798006
public static final String getLocaleExtendedName(String lookup, String locale) {

        StringBuffer result = new StringBuffer(32);
        result.append(lookup);
        result.append('_');
        result.append(locale);
        return result.toString();
    }
631224
public String getlocalName() {
        if (fqn.contains(".")) {
            return this.fqn.substring(fqn.lastIndexOf('.') + 1, this.fqn.length());
        }
        return fqn;
    }
924712
private String resolveName(String localName, String qualifiedName) {

        if ((localName == null) || (localName.length() == 0)) {
            return qualifiedName;
        } else {
            return localName;
        }
    }