- if (node.isNodeType(NodeType.MIX_CREATED)) {
- Instant instant = node.getProperty(Property.JCR_CREATED).getDate().toInstant();
+ if (node.hasProperty(JCR_CREATED)) {
+ Instant instant = node.getProperty(JCR_CREATED).getDate().toInstant();
+ return FileTime.from(instant);
+ } else if (node.hasProperty(JCR_LAST_MODIFIED)) {
+ Instant instant = node.getProperty(JCR_LAST_MODIFIED).getDate().toInstant();