class PublicEnvironmentEndpoint extends AbstractEndpoint<Map<String, Object>> {

    @Override
    public Map<String, Object> invoke() {
        return filterOutNonPublicProperties(environmentEndpoint.invoke());
    }

    public  PublicEnvironmentEndpoint(final EnvironmentEndpoint environmentEndpoint,
                                     @Value("${endpoints.pubenv.enabled:false}") final Boolean enabled,
                                     @Value("${endpoints.pubenv.sensitive:true}") final Boolean sensitive,
                                     Environment env);

}