container.registerComponentInstance(styleFactory);
container.registerComponentInstance(styleBuilder);
container.registerComponentInstance(new GeometryFactory());
container.registerComponentInstance(CoordinateArraySequenceFactory.instance());
container.registerComponentInstance(new StyleMap());
container.registerComponentInstance(new FolderStack());
SchemaRegistry schemaRegistry = new SchemaRegistry();
KMLCustomSchemaHandlerFactory handlerFactory = new KMLCustomSchemaHandlerFactory(
schemaRegistry);
container.registerComponentInstance(schemaRegistry);
container.registerComponentInstance(handlerFactory);