private Version getClusterOrNodeVersion ( ) { if ( node . getClusterService ( ) != null && ! node . getClusterService ( ) . getClusterVersion ( ) . isUnknown ( ) ) { return node . getClusterService ( ) . getClusterVersion ( ) ; } else { String overriddenClusterVersion = node . getProperties ( ) . getString ( GroupProperty . INIT_CLUSTER_VERSION ) ; return ( overriddenClusterVersion != null ) ? MemberVersion . of ( overriddenClusterVersion ) . asVersion ( ) : node . getVersion ( ) . asVersion ( ) ; } }
otherwise if not overridden use current node s codebase version