LPS-35555 Refactoring getLastModified() from recursive to iterative.
LPS-35555 Source formatting
LPS-35555 SF