Make method virtual to be able to override it in tests