{
//TODO better exception message
throw new IllegalArgumentException(AnnotationsMessages.noParserFoundForAnnotation(annotation).getMessage());
}
ExpressionAnnotationParser parser = factory.getExpressionParser(annotation);
if (parser == null)
{
if (logger.isDebugEnabled())
{
logger.debug(AnnotationsMessages.noParserFoundForAnnotation(annotation).getMessage());
}
return null;
}
return parser.parse(annotation, paramType);
}