code: public LuisResult resolve(String appId, String query, ResolveOptionalParameter resolveOptionalParameter) {
          return resolveWithServiceResponseAsync(appId, query, resolveOptionalParameter).toBlocking().single().body();
      }
docs: Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.
  
  @param appId The LUIS application ID (Guid).
  @param query The utterance to predict.
  @param resolveOptionalParameter the object representing the optional parameters to be set before calling this API
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws APIErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the LuisResult object if successful.