protected Schema buildTypeMappingProfile(Schema typeSchema) {
//reuse the regular gml3 type mapping profile bindings, but override
// the namespace uri
Schema gml3Profile = org.geotools.gml3.GML.getInstance().getTypeMappingProfile();
Set profile = new LinkedHashSet();
for (Name n : gml3Profile.keySet()) {
n = new NameImpl(NAMESPACE, n.getLocalPart());
if (typeSchema.get(n) != null) {
profile.add(n);
}
}