Fixed "Class 'AnnotationException' not found

Changed log call instead of adding the missing use statement.