LPS-36171 expose a new LayoutRevision method from which we can leverage the cache
LPS-36171 regenerate
LPS-36171 expose a new LayoutBranch method from which we can fetch or add the master layout branch depending on the situation
LPS-36171 regenerate
LPS-36171 avoid exception handling logic
LPS-36171 we're going to update so don't bother deleting first
LPS-36171 remember the new revision whenever one is created
LPS-36171 move logic where it will be part of the transaction
LPS-36171 return directly
LPS-36171 use new addOrFetchMasterLayoutBranch method
LPS-36171 layoutSetBranchId must always be greater than 0
LPS-36171 fix indentation only - no change
LPS-36171 move user up so it can be reused
LPS-36171 move logic outside the if block
LPS-36171 fix indentation only - no change
LPS-36171 use fetch
LPS-36171 fix indentation only - no change
LPS-36171 use the cached query for both cases and avoid exception handling logic
LPS-36171 reposition the setRecentLayoutRevision call where it will catch all cases up to this point
LPS-36171 this logic is now reduntant