for ( NodeTypeIterator typeIter = first.getNode().getSession().getWorkspace().getNodeTypeManager().getPrimaryNodeTypes();typeIter.hasNext(); ) {
NodeType type = typeIter.nextNodeType();
names.add(type.getName());
uniq.add(type.getName());
}
return new SimpleDynOptionsProvider(uniq.toArray(new String[uniq.size()]),names.toArray(new String[names.size()]));
} catch (Throwable e) {}
return new SimpleDynOptionsProvider(new String[] {}, new String[] {});
}