/** * Creates a document-based thread. * * @param router router for the document the container belongs to * @param container the element that corresponds to the <thread> tag */ static <E> DocumentBasedManifestThread create(DocumentEventRouter<? super E, E, ?> router, E container) { return new DocumentBasedManifestThread( DocumentBasedElementList.create(router, container, BLIP_TAG, DocumentBasedManifestBlip.<E> factory()), DocumentBasedBasicValue.create(router, container, Serializer.STRING, THREAD_ID_ATTR), DocumentBasedBasicValue.create(router, container, Serializer.BOOLEAN, INLINE_ATTR)); }