}
@Override
public void init(XmlResource resource) {
super.init(resource);
XmlDocumentType doctypeAnnotation = resource.root().element()
.type().getAnnotation(XmlDocumentType.class);
if( doctypeAnnotation != null )
{
this.systemId = normalizeToNull( doctypeAnnotation.systemId() );
if( this.systemId == null )
{
throw new IllegalStateException();
}
this.publicId = normalizeToNull( doctypeAnnotation.publicId() );
}
}