Create the name of the hidden field that is containing a capacity implementation.

@param id the id of the capacity.
@return the field name.
11624
public static String createNameForHiddenCapacityImplementationAttribute(String id) {
		return PREFIX_CAPACITY_IMPLEMENTATION + fixHiddenMember(id.toUpperCase()).replace(".", //$NON-NLS-1$
				HIDDEN_MEMBER_REPLACEMENT_CHARACTER);
	}
988326
public WasStartedBy newWasStartedBy(QualifiedName id) {
   	WasStartedBy res = of.createWasStartedBy();
   	res.setId(id);
   	return res;
    }
159108
protected LexNameToken idToName(LexIdentifierToken id)
	{
		LexNameToken name = new LexNameToken(reader.currentModule, id);
		return name;
	}
483947
public static String domain2ns(String id) {
		int at = id.indexOf('@');
		if (at >= 0) {
			String[] domain = id.substring(at + 1).split("\\.");
			StringBuilder ns = new StringBuilder(id.length());
			boolean first = true;
			for (int i = domain.length - 1; i >= 0; --i) {
				if (first) {
					first = false;
				} else {
					ns.append('.');
				}
				ns.append(domain[i]);
			}
			return ns.toString();
		} else {
			return "";
		}

	}
397394
public ApplicationConfig setId(String id) {
        if (this.id.equals(this.name)) {
            // keep name and id in sync if no custom name was specified
            this.name = id;
        }
        this.id = id;
        return this;
    }
224395
@Override
	public FieldList addField(Integer fieldID) {
		if (fieldID == null) {
			throw new IllegalArgumentException("Field ID must not be null.");
		}
		
		if (size() == 0) {
			return new FieldList(fieldID);
		} else {
			ArrayList<Integer> list = new ArrayList<Integer>(size() + 1);
			list.addAll(this.collection);
			list.add(fieldID);
			return new FieldList(Collections.unmodifiableList(list));
		}
	}
7286
private static void writeIdAndName(ClientSocket client, int id, String name) throws IOException
    {
        // New client id
        client.getOut().writeByte(id);
        // New client name
        final byte[] data = name.getBytes(NetworkMessage.CHARSET);
        client.getOut().writeByte(data.length);
        client.getOut().write(data);
    }
134623
public MemberConfig setId(String id) {
    return setId(id != null ? MemberId.from(id) : null);
  }
1218980
public static String determineDocumentKeyFromId(final String id) {
		final int lastSlash = id.lastIndexOf(KEY_DELIMITER);
		return id.substring(lastSlash + 1);
	}
1102768
@Override
    protected String getInstanceIdName(int id)
    {
        int shifted = id - super.getMaxInstanceId();
        if (1 <= shifted && shifted <= MAX_INSTANCE_ID) {
            switch (shifted) {
                case Id_multiline:    return "multiline";
                case Id_STAR:         return "$*";

                case Id_input:        return "input";
                case Id_UNDERSCORE:   return "$_";

                case Id_lastMatch:    return "lastMatch";
                case Id_AMPERSAND:    return "$&";

                case Id_lastParen:    return "lastParen";
                case Id_PLUS:         return "$+";

                case Id_leftContext:  return "leftContext";
                case Id_BACK_QUOTE:   return "$`";

                case Id_rightContext: return "rightContext";
                case Id_QUOTE:        return "$'";
            }
            // Must be one of $1..$9, convert to 0..8
            int substring_number = shifted - DOLLAR_ID_BASE - 1;
            char[] buf = { '$', (char)('1' + substring_number) };
            return new String(buf);
        }
        return super.getInstanceIdName(id);
    }
821112
public static Object getBean(String id) {
        ApplicationContext appContext = getAppContext();
        return appContext == null ? null : appContext.containsBean(id) ? appContext.getBean(id) : null;
    }
666502
@Pure
	public String getDBFFieldName(int index) {
		if (this.fieldCount != -1) {
			try {
				final DBaseFileField field = this.fields.get(index);
				if (field != null) {
					return field.getName();
				}
			} catch (Exception exception) {
				//
			}
		}
		return null;
	}
914021
public static DataSourceBackendId getInstance(String id) {
        DataSourceBackendId result = cache.get(id);
        if (result == null) {
            id = id.intern();
            result = new DataSourceBackendId(id);
            cache.put(id, result);
        }
        return result;
    }
1252828
private Set<String> getRelatedElementIds(String id) {

        Set<String> result = new HashSet<String>();
        if (id != null) {
            result.add(id);
            String serverId = getServerId(id);

            Iterator<String> it = m_elements.keySet().iterator();
            while (it.hasNext()) {
                String elId = it.next();
                if (elId.startsWith(serverId)) {
                    result.add(elId);
                }
            }

            Iterator<org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel> itEl = getAllDragElements().iterator();
            while (itEl.hasNext()) {
                org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel element = itEl.next();
                if (element.getId().startsWith(serverId)) {
                    result.add(element.getId());
                }
            }
        }
        return result;
    }
1041000
public static String getCustomID(String id) {
        int[] fields = new int[4];
        if (parseCustomID(id, fields)) {
            return formatCustomID(fields[1], fields[2], fields[3], fields[0] < 0);
        }
        return null;
    }
975977
public static String getCollation(final int id) {
        Entry entry = getEntry(id);

        if (entry != null) {
            return entry.mysqlCollation;
        } else {
            logger.warn("Unexpect mysql charset: " + id);
            return null;
        }
    }
901677
public String addId(final URI id) {
        if (id == null) {
            return null;
        }
        final URI localId = id.normalize();
        index ++;
        final String newId = PREFIX + Integer.toString(index);
        idMap.put(localId, newId);
        return newId;
    }