in src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceMetadata.java [141:156]
private long getPropertyLong(@NotNull Node node, @NotNull String propertyName) {
try {
Property prop = NodeUtil.getPropertyOrNull(node, propertyName);
if (prop != null) {
// We don't check node type, so the property might not be of type PropertyType.LONG
try {
return prop.getLong();
} catch (final ValueFormatException vfe) {
LOGGER.debug("Property {} cannot be converted to a long, ignored ({})", prop.getPath(), vfe);
}
}
} catch (final RepositoryException re) {
report(re);
}
return -1;
}