public static String configEntryOption(List<AppConfigurationEntry> configurationEntries, String key, String loginModuleName) {
        for (AppConfigurationEntry entry : configurationEntries) {
            if (loginModuleName != null && !loginModuleName.equals(entry.getLoginModuleName()))
                continue;
            Object val = entry.getOptions().get(key);
            if (val != null)
                return (String) val;
        }
        return null;
    }
Returns the configuration option for <code>key</code> from this context.
If login module name is specified, return option value only from that module.
clients/src/main/java/org/apache/kafka/common/security/JaasContext.java