LPS-50903 Avoid to use the invocationhandler to get the layout object since it is holding a reference to an old version of the entity that causes StaleObjectStateException when update
LPS-50903 SF