Changed getAnnotationValue to a simpler and faster solution