@SuppressWarnings("unchecked")
	public static <T extends Annotation> T getAnnotation(AnnotatedElement elem, Class<T> annType) {
		T result = null;

		for(Annotation annot : getAllAnnotations(elem, annType)) {
			if(annType.isAssignableFrom(annot.getClass())) {
				result = (T) annot;
				break;
			}
		}

		return result;
	}