/* Utility operations */
protected AnnotationWebScript createWebScript(final String beanName, final WebScript webScript, final Uri uri,
final HandlerMethods handlerMethods) {
final DescriptionImpl description = new DescriptionImpl();
if (StringUtils.hasText(webScript.defaultFormat())) {
description.setDefaultFormat(webScript.defaultFormat());
}
final String baseUri = webScript.baseUri();
handleHandlerMethodAnnotation(uri, handlerMethods.getUriMethod(), description, baseUri);
handleTypeAnnotations(beanName, webScript, description);
final String id = String.format("%s.%s.%s", generateId(beanName), handlerMethods.getUriMethod().getName(),
description.getMethod().toLowerCase());
description.setId(id);
final Object handler = getBeanFactory().getBean(beanName);
description.setStore(new AnnotationWebScriptStore());
return createWebScript(description, handler, handlerMethods);
}