code: private void textApiUsage() throws ApiException, JsonProcessingException {
          /**
           * 
           */
          String text =
                  "Toll IPEC has been an industry leader in environmental sustainability through its purchase of compressed natural gas powered trucks";
          String text2 =
                  "Shellshock can serve as a highway for worms and malware to hit your Unix, Linux, and Mac servers, but you can defend against it.";
          String text3 = "However, Shellshock is not as bad as HeartBleed. Not yet, anyway.";
          /**
           * 
           */
          LOG.info("The Text API usage.");
          Texts api = retinaApisInstance.textApi();
          /**
           * 
           */
          LOG.info("Text API: getKeywordsForText");
          List<String> keywords = api.getKeywords(text);
          logKeywords(keywords);
          /**
           * 
           */
          LOG.info("Text API: getRepresentationForText");
          List<Fingerprint> fingerprints = api.getFingerprints(text2);
          logFingerprints(fingerprints);
          /**
           * 
           */
          LOG.info("Text API: getRepresentationsForBulkText");
          fingerprints = api.getFingerprintBulk(0.1, TEXT_1, TEXT_2);
          logFingerprints(fingerprints);
          /**
           * 
           */
          LOG.info("Text API: getSlicesForText");
          List<Text> texts = api.getSlices(text);
          logTexts(texts);
          
          texts = api.getSlices(text3, new Pagination(0, 2), true);
          logTexts(texts);
          
          
          LOG.info("Text API: getTokensForText");
          List<String> tokens = api.getTokens(text2, new PosTag[] { PosTag.CC, PosTag.LRB });
          logTokens(tokens);
          
          tokens = api.getTokens(text2, new PosTag[] { });
          logTokens(tokens);
          
      }
docs: The Text API usage.
  
  @throws JsonProcessingException
  @throws ApiException