why not simply ApplicationDataMap applications_? looks like scoped_ptr is not needed