public static InvalidOptionConfigurationException requiredValue(List<String> keyAliases,
                                                                    String expectedType) {

        String optionName = keyAliases.get(0);
        String msg = "A value of type " + expectedType + " must be provided for '" + optionName + "'";
        return new InvalidOptionConfigurationException(msg, null)
            .setOptionName(optionName)
            .setExpectedType(expectedType);
    }
Indicate a failure to provide a required value.

@param keyAliases   the key aliases. The first key will be used. List must not be empty.
@param expectedType the anticipated type (e.g. boolean).
common/config/src/main/java/io/apiman/common/config/options/exceptions/InvalidOptionConfigurationException.java