class BBInputSetup implements JavaDelegate {

    protected VolumeGroup createVolumeGroup(Map<ResourceKey, String> lookupKeyMap, String volumeGroupId,
            String instanceName, String vnfType, List<Map<String, String>> instanceParams) {
        lookupKeyMap.put(ResourceKey.VOLUME_GROUP_ID, volumeGroupId);
        VolumeGroup volumeGroup = new VolumeGroup();
        volumeGroup.setVolumeGroupId(volumeGroupId);
        volumeGroup.setVolumeGroupName(instanceName);
        volumeGroup.setVnfType(vnfType);
        volumeGroup.setOrchestrationStatus(OrchestrationStatus.PRECREATED);
        if (instanceParams != null) {
            for (Map<String, String> params : instanceParams) {
                volumeGroup.getCloudParams().putAll(params);
            }
        }
        return volumeGroup;
    }

}