CommonOsConstraint arch = OsConstraintHelper.commonConstraint(os.getArch(), otherOs.getArch()); CommonOsConstraint family = OsConstraintHelper.commonConstraint(os.getFamily(), otherOs.getFamily()); CommonOsConstraint jre = OsConstraintHelper.commonConstraint(os.getJre(), otherOs.getJre()); CommonOsConstraint name = OsConstraintHelper.commonConstraint(os.getName(), otherOs.getName()); CommonOsConstraint version = OsConstraintHelper.commonConstraint(os.getVersion(), otherOs.getVersion());