}
String namespaces = pController.getXMLFieldName() + "Namespaces";
JavaField jf = pSource.newJavaField(namespaces, Set.class);
jf.setStatic(true);
jf.setFinal(true);
JavaClassInitializer jci = pSource.newJavaClassInitializer();
LocalJavaField set = jci.newJavaField(Set.class);
set.addLine("new ", HashSet.class, "()");
XsAnyURI[] uris = namespaceList.getUris();
for (int i = 0; i < uris.length; i++) {
jci.addLine(set, ".add(", JavaSource.getQuoted(uris[i].toString()), ");");
}
if (namespaceList.isLocalSet()) {
jci.addLine(set, ".add(\"\");");
}
if (namespaceList.isTargetNamespaceSet()) {
jci.addLine(set, ".add(", JavaSource.getQuoted(getTargetNamespace()), ");");
}
jci.addLine(jf, " = ", Collections.class, ".unmodifiableSet(", set, ");");
return jf;
}