if (beanType == null) {
return Collections.emptyList();
}
final WebScript webScriptAnnotation = beanFactory.findAnnotationOnBean(beanName, WebScript.class) != null ? beanFactory
.findAnnotationOnBean(beanName, WebScript.class) : getDefaultWebScriptAnnotation();
final String baseUri = webScriptAnnotation.baseUri();
if (StringUtils.hasText(baseUri) && baseUri.startsWith("/") == false) {
throw new RuntimeException(String.format(
"@WebScript baseUri for class '%s' does not start with a slash: '%s'", beanType, baseUri));
}