}
} );
}
public static String getVersionHistoryNodePath( final JcrTemplate jcrTemplate, final String absPath ) {
return (String) jcrTemplate.execute( new JcrCallback() {
public Object doInJcr( final Session session ) throws RepositoryException {
Item item = session.getItem( absPath );
Assert.isTrue( item.isNode() );
Node node = ( (Node) item );
return node.getVersionHistory().getPath();