Best practice for @java method
We are migrating pega 7.3 applications to pega cloud infinity 23.
Then found that @java expressions used in the applications that are not supported on infinity 23.
Would you please help to tell me the best practice to re-write the @java expressions of the 2 pattern below?
Pattern 1: @java("((javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")).getParameter(\"uid\")")
Pattern 2:@java("PRAuthentication.DEFAULT_FAIL_STREAM")
The @java expressions are used as value of Set-property in activities.
***Edited by Moderator Rupashree S. to add Capability tags***