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
return new NodeImpl(this, session, state, listeners);
}
}