class ClouderaManagerLicenseService {

    void validateClouderaManagerLicense(User user) {
        if (hasNoLicense(user.getUserCrn())) {
            LOGGER.error("User '{}' doesn't have a valid cloudera manager license.", user.getUserCrn());
            throw new RuntimeException("User doesn't have a valid cloudera manager license.");
        }
    }

}