code: public static JCas getJCas(final Annotation annotation)
      {
          JCas result = null;
          try {
              result = annotation.getCAS().getJCas();
          }
          catch (final CASException e) {
              throw new IllegalArgumentException(e);
          }
  
          return result;
  
      }
docs: Returns the JCas of this annotation.
  
  <p>
  The method converts the potentially thrown {@link CASException} to an
  unchecked {@link IllegalArgumentException}.
  </p>
  
  @param annotation the annotation
  @return the extracted JCas