}
if (sad.regex != null) {
schema.addFacet(slotName, new RegexFacet(sad.regex));
}
if (sad.documentation != null) {
schema.addFacet(slotName, new DocumentationFacet(sad.documentation));
}
if (sad.permittedValues != null) {
// Adjust permitted values in correct class type
// This is necessary because in the annotation the permitted values are string
Object[] typizedPermittedValues = new Object[sad.permittedValues.length];