For binary compatibility must continue to override getPrevious/NextBuild in AbstractBuild.