in impl/src/main/java/org/apache/geronimo/config/ConfigImpl.java [106:113]
public <T> Optional<T> getOptionalValue(String propertyName, Class<T> asType) {
String value = getValue(propertyName);
if (value != null && value.length() == 0) {
// treat an empty string as not existing
value = null;
}
return Optional.ofNullable(convert(value, asType));
}