Pattern regex = isCaseSensitive ? Pattern.compile(pattern) : Pattern.compile(pattern, Pattern.CASE_INSENSITIVE);
conventions.put(annotationType, regex);
}
public void setConvention(Class<? extends Annotation> annotationType) {
Convention conv = annotationType.getAnnotation(Convention.class);
if (conv == null)
throw new IllegalArgumentException("No Convention Annotation [" + annotationType + "]");
setConvention(conv.value(), annotationType);
}