LPS-39528 Make method static to ease testability
LPS-39528 Extend testcase to take virtual layouts into account as well
LPS-39528 SF