class AAICreateTasks {

    public void createNetwork(BuildingBlockExecution execution) {
        try {
            ServiceInstance serviceInstance =
                    extractPojosForBB.extractByKey(execution, ResourceKey.SERVICE_INSTANCE_ID);
            L3Network l3network = extractPojosForBB.extractByKey(execution, ResourceKey.NETWORK_ID);
            // set default to false. ToBe updated by SDNC
            l3network.setIsBoundToVpn(false);
            // define is bound to vpn flag as true if NEUTRON_NETWORK_TYPE is PROVIDER
            if (l3network.getModelInfoNetwork().getNeutronNetworkType().equalsIgnoreCase(networkTypeProvider))
                l3network.setIsBoundToVpn(true);
            // put network shell in AAI
            aaiNetworkResources.createNetworkConnectToServiceInstance(l3network, serviceInstance);
        } catch (Exception ex) {
            exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
        }
    }

}