this.request = request;
this.scene = new Scene();
}
public void run() throws IOException {
W3DSLayerInfo layerInfo = request.getLayer();
List<Style> styles = new ArrayList<Style>();
for (StyleInfo si : layerInfo.getLayerInfo().getStyles()) {
styles.add(si.getStyle());
}
String name = layerInfo.getLayerInfo().getResource().getName();
FeatureTypeInfo feature = catalog.getFeatureTypeByName(layerInfo
.getLayerInfo().getResource().getName());
Query query = createQuery((SimpleFeatureSource) feature
.getFeatureSource(null, null));
scene.add(layerInfo,
feature.getFeatureSource(null, null).getFeatures(query), styles, catalog);