* @throws RepositoryException if the namespace mappings cannot
* be retrieved from the registry
*/
private NodeTypeWriter(NamespaceRegistry registry)
throws ParserConfigurationException, RepositoryException {
builder = new DOMBuilder(Constants.NODETYPES_ELEMENT);
String[] prefixes = registry.getPrefixes();
for (int i = 0; i < prefixes.length; i++) {
if (!"".equals(prefixes[i])) {
String uri = registry.getURI(prefixes[i]);