slightly fix to get non-aws version working again. @flo: sry for raping your InMemoryDirectoryService. I will think about this later