/* (non-Javadoc)
@see com.att.authz.facade.AuthzFacade#getNSsByName(com.att.authz.env.AuthzTrans, javax.servlet.http.HttpServletResponse, java.lang.String)
428493
@Override
	public Result<Void> getNSsByName(AuthzTrans trans, HttpServletResponse resp, String ns) {
		TimeTaken tt = trans.start(GET_NS_BY_NAME + ' ' + ns, Env.SUB|Env.ALWAYS);
		try {
			Result<NSS> rp = service.getNSbyName(trans, ns);
			switch(rp.status) {
				case OK: 
					RosettaData<NSS> data = nssDF.newData(trans).load(rp.value);
					if(Question.willSpecialLog(trans, trans.user())) {
						Question.logEncryptTrace(trans,data.asString());
					}
					data.to(resp.getOutputStream());
					setContentType(resp,nssDF.getOutType());
					return Result.ok();
				default:
					return Result.err(rp);
			}
		} catch (Exception e) {
			trans.error().log(e,IN,GET_NS_BY_NAME);
			return Result.err(e);
		} finally {
			tt.done();
		}
	}
1020812
public String getMessagingEngineName()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getMessagingEngineName");
    String meUuid = this.getRemoteEngineUuid();
    String meName = 
      JsAdminUtils.getMENameByUuid(meUuid);
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getMessagingEngineName", meName);
    return meName;
  }
159469
public String nextName() throws IOException {
    int p = peeked;
    if (p == PEEKED_NONE) {
      p = doPeek();
    }
    String result;
    if (p == PEEKED_UNQUOTED_NAME) {
      result = nextUnquotedValue();
    } else if (p == PEEKED_SINGLE_QUOTED_NAME) {
      result = nextQuotedValue('\'');
    } else if (p == PEEKED_DOUBLE_QUOTED_NAME) {
      result = nextQuotedValue('"');
    } else {
      throw new IllegalStateException("Expected a name but was " + peek() + locationString());
    }
    peeked = PEEKED_NONE;
    pathNames[stackSize - 1] = result;
    return result;
  }
1228409
public static String getUserName() throws Exception {
        Subject subject = getRunAsSubjectInternal();
        if (subject == null) {
            return null;
        }
        Set<Principal> principals = subject.getPrincipals();
        Iterator<Principal> principalsIterator = principals.iterator();
        if (principalsIterator.hasNext()) {
            Principal principal = principalsIterator.next();
            return principal.getName();
        }
        return null;
    }
178015
public String getName() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        AgentInfo agentInfo = new AgentInfo();
        agentInfo.setType(IQ.Type.get);
        agentInfo.setTo(workgroupJID);
        agentInfo.setFrom(getUser());
        AgentInfo response = connection.createStanzaCollectorAndSend(agentInfo).nextResultOrThrow();
        return response.getName();
    }
972950
public String determineUsername() {
		if (StringUtils.hasText(this.username)) {
			return this.username;
		}
		if (EmbeddedDatabaseConnection.isEmbedded(determineDriverClassName())) {
			return "sa";
		}
		return null;
	}
724929
public Auth retrieve(String nsid) {
    	Auth auth =  this.auths.get(nsid);
    	if(auth != null)
    		return auth;
    	else
    		return this.authsByUser.get(nsid);
    }
185425
def get_name(self, properly_capitalized=False):
        """"""

        if properly_capitalized:
            self.name = _extract(
                self._request(self.ws_prefix + ".getInfo", True), "name"
            )

        return self.name
46130
@Override
    public String getName() {
        final Object attributeValue = this.getAttributeValue(this.userNameAttribute);
        if (attributeValue == null) {
            return null;
        }

        return attributeValue.toString();
    }
883149
function getname(req, res) {
  res.send(null, req.conn.client.name);
}
616119
public static String getExtensionNameNoAuthor(String extensionName) {
		String value = null;
		if (extensionName != null) {
			value = extensionName.substring(
					extensionName.indexOf(EXTENSION_NAME_DIVIDER) + 1,
					extensionName.length());
		}
		return value;
	}
574891
private String getName(String s1, String s2) {
        if (s1 == null || "".equals(s1)) return s2;
        else return s1;
    }
1146184
@Override
	@Pure
	public String getName() {
		String name = this.roadNetwork.getName();
		if (name != null && !"".equals(name)) { //$NON-NLS-1$
			return name;
		}
		name = super.getName();
		if (name != null && !"".equals(name)) { //$NON-NLS-1$
			return name;
		}
		return Locale.getString("NAME_TEMPLATE"); //$NON-NLS-1$
	}
867421
public String getShortName(Locale locale, String id, String nameKey, boolean standardTime) {
        String[] nameSet = getNameSet(locale, id, nameKey, standardTime);
        return nameSet == null ? null : nameSet[0];
    }
382571
@Test
    public void getUserSecurityName() throws Exception {
        String user = "vmmtestuser";
        String securityName = "cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com";

        Log.info(c, "getUserSecurityName", "Checking with a valid user.");
        LDAPFatUtils.assertDNsEqual("User security name didn't match expected value.", securityName, servlet.getUserSecurityName(user));
    }
155532
@Override
	public String getBrowserName() {
		if (wd != null) {
			Capabilities capabilities = ((HasCapabilities) wd)
					.getCapabilities();
			if (capabilities != null) {
				return capabilities.getBrowserName();
			}
			return null;
		}
		return null;
	}
42533
public String getHostName() {
        if( addr instanceof NbtAddress ) {
            return ((NbtAddress)addr).getHostName();
        }
        return ((InetAddress)addr).getHostName();
    }