XmlDocumentType doctypeAnnotation = resource.root().element()
.type().getAnnotation(XmlDocumentType.class);
if( doctypeAnnotation != null )
{
this.systemId = normalizeToNull( doctypeAnnotation.systemId() );
if( this.systemId == null )
{
throw new IllegalStateException();
}