{
String prefix = schema.xmlns()[i].prefix();
String existingMapping = schemaBinding.getNamespace(prefix);
if(existingMapping != null)
{
String newMapping = schema.xmlns()[i].namespaceURI();
if(!existingMapping.equals(newMapping))
throw new IllegalStateException("Class " + root.getName() + " maps prefix '" + prefix +
"' to namespace '" + newMapping + "' while in the schema binding it is mapped to '" + existingMapping + "'");
}
else