adaptation for hammerhead

https://github.com/libhybris/libhybris/pull/227