The org.opencode4workspace.endpoints.FocusPostEndpoint is used to post text for Focus analysis and retrieve a List of Focus objects corresponding to the analyses.
The FocusEndpoint is instantiated, like the other endpoints, by passing in the WWClient for the request. The text string is posted using the postMessage(String text) method. Alternatively, the WWClient.postTextForFocusAnalysis(String text) helper method is available for easier use.
A List of Focus objects is returned. The applicationId and lensId are auto-generated. The focusVersion is defined by Watson Work Services. The lens identifies what was identified - an "ActionRequest", a "Question" or a "Commitment". The confidence is a number between 0 and 1 that identifies how certain Watson Work Services was in identifying the lens. The start and end are the indices of within the passed text that the phrase can be found. It seems that the lens always hashidden set to true.