public String getNextComponent(Identifier ident) {
		String prefix = ident.getFullName();
		if (prefix.length() > 0)
			prefix += ".";

		int lastDot = prefix.length();
		if (!wildcard.startsWith(prefix))
			return null;

		int nextDot = wildcard.indexOf('.', lastDot);
		if (nextDot > 0 && (nextDot <= firstStar || firstStar == -1))
			return wildcard.substring(lastDot, nextDot);
		else if (firstStar == -1)
			return wildcard.substring(lastDot);
		else
			return null;
	}