private void InternalHandleId(XmlSchemaAnnotated element)
 {
     if (element.GetSchema() == _schema)
         HandleId(element);
 }
        private string GetObjectSourceCode(XmlSchemaAnnotated annotated, PostProcessingOptions processingOptions)
        {
            var schema = annotated.GetSchema();
            if (schema == null)
                return string.Empty;

            XmlDocument schemaSource;
            if (!_schemaSources.TryGetValue(schema, out schemaSource))
                return string.Empty;

            var namespaceManager = _namespaceManagers[schema];

            var lookupId = _lookupIds[annotated];
            var source = GetObjectSourceCode(schemaSource, namespaceManager, lookupId, processingOptions);
            return source;
        }