}
if (requestedType.isAssignableFrom(SimpleFeatureStore.class) ||
requestedType.isAssignableFrom(FeatureStore.class) ){
if( resource instanceof SimpleFeatureStore){
return new UDIGSimpleFeatureStore(resource, layer);
}
else {
@SuppressWarnings("unchecked")
FeatureStore<FeatureType,Feature> prep = (FeatureStore<FeatureType,Feature>) resource;
return new UDIGFeatureStore( prep, layer);