public void generateXmlSchema(OutputStream output, boolean excludeOptional) throws Exception {
Element configEl = new Element("config", namespaceUri);
configEl.addNamespaceDeclaration(null, namespaceUri);
for (InjectableProperty property : new ConfigClassAnalyzer(configClass).getConfigProperties()) {
if (excludeOptional && property.isOptional()) {
continue;
}
if (property.isContextual()) {