Or we move the nested class outside, and make it friend class of ApplicationProcessManager? I dont see so much difference.