code: public Retina getLanguage (String body) throws ApiException {
           // verify required params are set
           if(body == null ) {
                throw new ApiException(400, "missing required params");
           }
           // create path and map variables
           String path = "/text/detect_language".replaceAll("\\{format\\}","json");
  
           // query params
           Map<String, String> queryParams = new HashMap<String, String>();
           Map<String, String> headerParams = new HashMap<String, String>();
  
           String contentType = "application/json";
  
           try {
               Object response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams
                   , body, headerParams, contentType);
               if(response != null) {
                   if (response instanceof String) {
                           @SuppressWarnings("unchecked")
                           Retina result = (Retina) ApiInvoker.deserialize( (String) response, ""
                                   , Retina.class, null);return result;
                   }
                   else if (response instanceof java.io.ByteArrayInputStream) {
                           @SuppressWarnings("unchecked")
                           Retina result =    (Retina) response;return result;
                   }
                   
               }
               else {
                   return null;
               }
           } catch (ApiException ex) {
               if(ex.getCode() == 404) {
                   return null;
               }
               else {
                   throw ex;
               }
           }
           return null;}
docs: Generated.
  @throws ApiException if an error occurs during querying of the API.
  @return Retina *