@Nonnull
    @Override
    public String[] getPropertyNames() {
        return list.stream().map(MongoDbProperty::getName).toArray(String[]::new);
    }
This is {@link MongoDbPropertySource}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-configuration-cloud-mongo/src/main/java/org/apereo/cas/MongoDbPropertySource.java