class VrfValidation {

    protected void vrfCatalogDbChecks(org.onap.so.db.catalog.beans.Service service) throws VrfBondingServiceException {
        ConfigurationResourceCustomization configuration = getVrfConfiguration(service);
        if (configuration == null || configuration.getServiceProxyResourceCustomization() == null
                || configuration.getServiceProxyResourceCustomization().getSourceService() == null
                || !configuration.getServiceProxyResourceCustomization().getSourceService().getServiceType()
                        .equalsIgnoreCase("TRANSPORT")) {
            throw new VrfBondingServiceException("Service: " + service.getModelName()
                    + " does not have a configuration of type VRF-ENTRY and role INFRASTRUCTURE-CLOUD-VPN"
                    + ", and serviceProxy that does not have source service that has a serviceType of TRANSPORT)");
        }
    }

}