class BBInputSetup implements JavaDelegate {

    protected L3Network createNetwork(Map<ResourceKey, String> lookupKeyMap, String instanceName, String networkId,
            List<Map<String, String>> instanceParams, BBInputSetupParameter parameter) {
        lookupKeyMap.put(ResourceKey.NETWORK_ID, networkId);
        L3Network network = new L3Network();
        network.setNetworkId(networkId);
        network.setNetworkName(instanceName);
        network.setOrchestrationStatus(OrchestrationStatus.PRECREATED);
        if (parameter != null) {
            if (parameter.getLineOfBusiness() != null) {
                network.setLineOfBusiness(this.mapperLayer.mapRequestLineOfBusiness(parameter.getLineOfBusiness()));
            }
            if (parameter.getLineOfBusiness() != null) {
                network.setPlatform(this.mapperLayer.mapRequestPlatform(parameter.getPlatform()));
            }
        }
        if (instanceParams != null) {
            for (Map<String, String> params : instanceParams) {
                network.getCloudParams().putAll(params);
            }
        }
        return network;
    }

}