Of course there's a != for Edition :), nevertheless the test should probably be 'if ( cap.detail().isVersioned() )'