public boolean isApplicable(PrereqCheckRequest request) throws AmbariException {
String repoVersion = request.getRepositoryVersion();
if (null == repoVersion) {
return false;
}
<BUG>RepositoryVersionEntity rve = findByVersion(repoVersion);
</BUG>
if (null == rve) {
return false;
}

public boolean isApplicable(PrereqCheckRequest request) throws AmbariException {
String repoVersion = request.getRepositoryVersion();
if (null == repoVersion) {
return false;
}
RepositoryVersionEntity rve = repositoryVersionDaoProvider.get().findMaxByVersion(repoVersion);
if (null == rve) {
return false;
}
