public List<KmlDecorator> getDecoratorsForClass(Class<? extends Feature> clazz) {
List<KmlDecoratorFactory> factories = GeoServerExtensions
.extensions(KmlDecoratorFactory.class);
List<KmlDecorator> result = new ArrayList<KmlDecorator>();
for (KmlDecoratorFactory factory : factories) {
KmlDecorator decorator = factory.getDecorator(clazz, this);
if (decorator != null) {
result.add(decorator);
}
}