Added debug logging to RestServerImplementation