(GalleryDefaultModule) protocol.getGalleryModule();
ItemDefaultRenderer itemRenderer =
(ItemDefaultRenderer) galleryModule.getElementRenderer(ItemAttributes.class);
itemRenderer.setDetailSlideId(slideId);
DetailAttributes detailAttributes = (DetailAttributes) attributes;
StringBuffer buffer = new StringBuffer();
StylesExtractor detailStylesExtractor =
createStylesExtractor(protocol, detailAttributes.getStyles());
double detailDuration = detailStylesExtractor.getDuration();
buffer.append("Widget.register(")
.append(createJavaScriptString(slideId))