return new Range( (Long) from, (Long) to );
}
private static Node getPropHolderNodeForVersion( Node node, long version )
{
Range range = getVersion( node );
System.out.println("Seeking prop holder for: " + node);
if ( !range.contains( version ) )
{
Relationship prevVersionRel = node.getSingleRelationship( PREV_VERSION_REL_TYPE, Direction.OUTGOING );
if ( prevVersionRel == null )
{
throw new NotFoundException( "Version [" + version + "] not found." );