class BBInputSetup implements JavaDelegate {

    protected void populateL3Network(BBInputSetupParameter parameter) {
        L3Network network = null;
        for (L3Network networkTemp : parameter.getServiceInstance().getNetworks()) {
            if (parameter.getLookupKeyMap().get(ResourceKey.NETWORK_ID) != null && networkTemp.getNetworkId()
                    .equalsIgnoreCase(parameter.getLookupKeyMap().get(ResourceKey.NETWORK_ID))) {
                network = networkTemp;
                break;
            }
        }
        if (network == null && (parameter.getBbName().equalsIgnoreCase(AssignFlows.NETWORK_A_LA_CARTE.toString())
                || parameter.getBbName().equalsIgnoreCase(AssignFlows.NETWORK_MACRO.toString()))) {
            network = createNetwork(parameter.getLookupKeyMap(), parameter.getInstanceName(), parameter.getResourceId(),
                    parameter.getInstanceParams(), parameter);
            parameter.getServiceInstance().getNetworks().add(network);
        }
        if (network != null) {
            mapCatalogNetwork(network, parameter.getModelInfo(), parameter.getService());
        }
    }

}