// check special nodes
Name ntName = state.getNodeTypeName();
if (NameConstants.NT_VERSION.equals(ntName)) {
// version
return new VersionImpl(this, session, state, listeners);
} else if (NameConstants.NT_VERSIONHISTORY.equals(ntName)) {
// version-history
return new VersionHistoryImpl(this, session, state, listeners);
} else {
// create common node object