public static Annotation[] compileAnnotations(List<AnnotationDesc> annotationSpec,EngineImportService engineImportService,String eplStatement){
  Annotation[] annotations;
  try {
    annotations=AnnotationUtil.compileAnnotations(annotationSpec,engineImportService);
  }
 catch (  AnnotationException e) {
    throw new EPStatementException("Failed to process statement annotations: " + e.getMessage(),e,eplStatement);
  }
catch (  RuntimeException ex) {
    String message="Unexpected exception compiling annotations in statement, please consult the log file and report the exception: " + ex.getMessage();
    log.error(message,ex);
    throw new EPStatementException(message,ex,eplStatement);
  }
  return annotations;
}

public static Annotation [ ] compileAnnotations ( List < AnnotationDesc > annotationSpec , EngineImportService engineImportService , String eplStatement ) { Annotation [ ] annotations ; try { annotations = AnnotationUtil . compileAnnotations ( annotationSpec , engineImportService ) ; } catch ( AnnotationException e ) { throw new EPStatementException ( "Failed to process statement annotations: " + e . getMessage ( ) , e , eplStatement ) ; } catch ( RuntimeException ex ) { String message = "Unexpected exception compiling annotations in statement, please consult the log file and report the exception: " + ex . getMessage ( ) ; log . error ( message , ex ) ; throw new EPStatementException ( message , ex , eplStatement ) ; } return annotations ; }
compile annotation objects from descriptors .
