private EntitlementCondition migrateEnvironmentCondition(
     PolicyCondition condition, MigrationReport migrationReport) throws EntitlementException {
   final EntitlementCondition migrated =
       conditionUpgradeMap.migrateEnvironmentCondition(
           condition.getClassName(), condition, migrationReport);
   migrated.validate();
   return migrated;
 }
 private boolean isUpgradablePolicySubject(EntitlementSubject subject) {
   return subject instanceof PolicySubject
       && conditionUpgradeMap.containsSubjectCondition(((PolicySubject) subject).getClassName());
 }
 private EntitlementSubject migrateSubjectCondition(
     PolicySubject subject, MigrationReport migrationReport) {
   return conditionUpgradeMap.migrateSubjectCondition(
       subject.getClassName(), subject, migrationReport);
 }
 private boolean isUpgradablePolicyCondition(EntitlementCondition condition) {
   return condition instanceof PolicyCondition
       && conditionUpgradeMap.containsEnvironmentCondition(
           ((PolicyCondition) condition).getClassName());
 }