if (parent instanceof ComplexElementHandler){
ComplexElementHandler complexParent = (ComplexElementHandler)parent;
String typename = complexParent.getType().getClass().getName();
// TODO: HACK The required Type is not in this Module
if(typename.equals("org.geotools.xml.wfs.WFSBasicComplexTypes$FeatureCollectionType")){
complexParent.removeElement(handler);
}
}
}
}
}