returns IsolationLevel literal as matching
to the corresponding id
@return the IsolationLevel literal
169995
protected String getIsolationLevelAsString()
    {
        if (defaultIsolationLevel == IL_READ_UNCOMMITTED)
        {
            return LITERAL_IL_READ_UNCOMMITTED;
        }
        else if (defaultIsolationLevel == IL_READ_COMMITTED)
        {
            return LITERAL_IL_READ_COMMITTED;
        }
        else if (defaultIsolationLevel == IL_REPEATABLE_READ)
        {
            return LITERAL_IL_REPEATABLE_READ;
        }
        else if (defaultIsolationLevel == IL_SERIALIZABLE)
        {
            return LITERAL_IL_SERIALIZABLE;
        }
        else if (defaultIsolationLevel == IL_OPTIMISTIC)
        {
            return LITERAL_IL_OPTIMISTIC;
        }
        return LITERAL_IL_READ_UNCOMMITTED;
    }
1197972
public String getIdName() {
        String result = null;
        if (idAccessor != null) {
            result = idAccessor.getPropertyName();
        }
        return result;
    }
36129
static String getSafeSystemNewline() {
    try {
      String unsafeNewline = System.getProperty("line.separator");
      if (unsafeNewline.matches(ALLOWED_NEWLINE_PATTERN)) {
        return unsafeNewline;
      }
    } catch (SecurityException e) {
      // Fall through to default value;
    }
    return "\n";
  }
901632
public String getName() {
        if (name == null && securityIdentity != null) {
            name = securityIdentity.getPrincipal().getName();
        }

        return name;
    }
990723
public String nextId() {
        String id = "-1";
        do {
            // when we reach max int, reset to zero
            if (nextId.get() == Integer.MAX_VALUE) {
                nextId.set(0);
            }
            id = String.format("%d", nextId.getAndIncrement());
        } while (hasClient(id));
        return id;
    }
232166
private int getIsoLevel(String isoLevel)
    {
        if (isoLevel.equalsIgnoreCase(LITERAL_IL_READ_UNCOMMITTED))
        {
            return IL_READ_UNCOMMITTED;
        }
        else if (isoLevel.equalsIgnoreCase(LITERAL_IL_READ_COMMITTED))
        {
            return IL_READ_COMMITTED;
        }
        else if (isoLevel.equalsIgnoreCase(LITERAL_IL_REPEATABLE_READ))
        {
            return IL_REPEATABLE_READ;
        }
        else if (isoLevel.equalsIgnoreCase(LITERAL_IL_SERIALIZABLE))
        {
            return IL_SERIALIZABLE;
        }
        else if (isoLevel.equalsIgnoreCase(LITERAL_IL_OPTIMISTIC))
        {
            return IL_OPTIMISTIC;
        }
        //logger.warn("unknown isolation-level: " + isoLevel + " using RW_UNCOMMITTED as default");
        return defIsoLevel;
    }
1165197
public String getIDPath()
    {
        String strIDPath = this.getID();
        if (this.getParentProxy() != null)
        {
            String strParentPath = this.getParentProxy().getIDPath();
            if (strParentPath != null)
                strIDPath = strParentPath + PATH_SEPARATOR + strIDPath;
        }
        return strIDPath;
    }
968662
private String rdIdentifier()
	{
		StringBuilder id = new StringBuilder();
		id.append(ch);

		while (restOfName(rdCh()))
		{
			id.append(ch);
		}

		return id.toString();
	}
723158
public static Matcher<ExpressionTree> isVariable() {
    return new Matcher<ExpressionTree>() {
      @Override
      public boolean matches(ExpressionTree expressionTree, VisitorState state) {
        Symbol symbol = ASTHelpers.getSymbol(expressionTree);
        if (symbol == null) {
          return false;
        }
        return symbol.getKind() == ElementKind.LOCAL_VARIABLE
            || symbol.getKind() == ElementKind.PARAMETER;
      }
    };
  }
766453
private static String getFullInstanceId(String hostname, String id) {
    String str = hostname == null ? "" : hostname;
    str = str.replace('.', '_');
    str += (id == null ? "" : "-" + id);
    return str;
  }
395679
@Override
  public Level getLevel()
  {
    if (_localLevel != null) {
      Level level = _localLevel.get();

      if (level != null) {
        return level;
      }
    }

    return _systemLevel;
  }
318186
public static int getIsolationLevel(Object obj)
    {
        Class c = ProxyHelper.getRealClass(obj);
        int isolationLevel = IsolationLevels.IL_READ_UNCOMMITTED;

        try
        {
            ClassDescriptor cld = TxManagerFactory.instance().getCurrentTransaction().getBroker().getClassDescriptor(c);
            isolationLevel = cld.getIsolationLevel();
        }
        catch (PersistenceBrokerException e)
        {
            LoggerFactory.getDefaultLogger().error("[LockStrategyFactory] Can't detect locking isolation level", e);
        }
        return isolationLevel;
    }
976768
public com.google.appengine.v1.SecurityLevel getSecurityLevel() {
    com.google.appengine.v1.SecurityLevel result = com.google.appengine.v1.SecurityLevel.valueOf(securityLevel_);
    return result == null ? com.google.appengine.v1.SecurityLevel.UNRECOGNIZED : result;
  }
35781
public Level getEffectiveLevel() {
        if (slf4jLogger.isTraceEnabled()) {
            return Level.TRACE;
        }
        if (slf4jLogger.isDebugEnabled()) {
            return Level.DEBUG;
        }
        if (slf4jLogger.isInfoEnabled()) {
            return Level.INFO;
        }
        if (slf4jLogger.isWarnEnabled()) {
            return Level.WARN;
        }
        return Level.ERROR;
    }
828775
public String getInstanceId() {
        String rc = toString();
        int i = rc.indexOf("@");
        if (i > 0) {
            rc = rc.substring(i + 1);
        }
        return rc;
    }
950500
public String qualifiedName() {
        if (qualifiedName == null) {
            Name fullname = sym.getQualifiedName();
            // Some bogus tests depend on the interned "" being returned.
            // See 6457276.
            qualifiedName = fullname.isEmpty() ? "" : fullname.toString();
        }
        return qualifiedName;
    }
541905
public Chain getRepresentative() {

		List<String> chainIds = new ArrayList<>();
		for (Chain chain:chains) {
			chainIds.add(chain.getId());
		}

		Collections.sort(chainIds, String.CASE_INSENSITIVE_ORDER);

		for (Chain chain:chains) {
			if (chain.getId().equals(chainIds.get(0))) {
				return chain;
			}
		}

		logger.error("Could not find a representative chain for EntityInfo '{}'", this.toString());

		return null;
	}