class BBInputSetup implements JavaDelegate {

    protected void populateNetworkCollectionAndInstanceGroupAssign(BBInputSetupParameter parameter) throws Exception {
        if (parameter.getServiceInstance().getCollection() == null
                && parameter.getBbName().equalsIgnoreCase(AssignFlows.NETWORK_COLLECTION.toString())) {
            Collection collection = this.createCollection(parameter.getResourceId());
            parameter.getServiceInstance().setCollection(collection);
            this.mapCatalogCollection(parameter.getService(), parameter.getServiceInstance().getCollection(),
                    parameter.getKey());
            if (isVlanTagging(parameter.getService(), parameter.getKey())) {
                InstanceGroup instanceGroup = this.createInstanceGroup();
                parameter.getServiceInstance().getCollection().setInstanceGroup(instanceGroup);
                this.mapCatalogNetworkCollectionInstanceGroup(parameter.getService(),
                        parameter.getServiceInstance().getCollection().getInstanceGroup(), parameter.getKey());
            }
        }
    }

}