Implementation of AbstractConfigurationResource for REST clients

InputStream must be closed after it's used.