final List<org.springframework.extensions.webscripts.WebScript> webScripts = new ArrayList<org.springframework.extensions.webscripts.WebScript>();
ReflectionUtils.doWithMethods(beanType, new ReflectionUtils.MethodCallback() {
@Override
public void doWith(final Method method) throws IllegalArgumentException, IllegalAccessException {
final Uri uri = AnnotationUtils.findAnnotation(method, Uri.class);
if (uri != null) {
final AnnotationWebScript webScript = createWebScript(beanName, webScriptAnnotation, uri,
handlerMethods.createForUriMethod(method));
webScripts.add(webScript);
}