private JCRNodeWrapperImpl createWrapper(Node objectNode, String path, JCRNodeWrapper parent, JCRSessionWrapper session) {
if (session.getVersionDate() != null || session.getVersionLabel() != null) {
try {
if (objectNode.isNodeType(Constants.NT_FROZENNODE)) {
return new JCRFrozenNodeAsRegular(objectNode, path, parent, session, this, session.getVersionDate(), session.getVersionLabel());
}
} catch (RepositoryException e) {
e.printStackTrace();
}
}