public ValidationResult passthroughProfileContainsSupportedProperties() {
   return ValidationResult.failWith(
           EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES)
       .when(
           vnicProfile.isPassthrough()
               && (vnicProfile.isPortMirroring() || vnicProfile.getNetworkQosId() != null));
 }
 public ValidationResult networkQosExistsOrNull() {
   return vnicProfile.getNetworkQosId() == null
           || getDbFacade().getNetworkQosDao().get(vnicProfile.getNetworkQosId()) != null
       ? ValidationResult.VALID
       : new ValidationResult(EngineMessage.ACTION_TYPE_FAILED_NETWORK_QOS_NOT_EXISTS);
 }