this.cls = cls;
URI uri = ((AnnotatedElement)cls).getAnnotation(URI.class);
if (uri != null) {
this.base = uri.base();
this.parts = uri.parts();
this.separator = uri.separator();
this.validate();
} else {
throw new IllegalArgumentException("Class not annotated with any URI");
}
}