item.addDC(element, qualifier, null, new DCSeriesNumber(s, n).toString());
if (!s.equals("") || !n.equals("")) { item.addDC(element, qualifier, null, new DCSeriesNumber(s, n).toString()); }
    private void readSeriesNumbers(HttpServletRequest request,        Item item,        String element,        String qualifier,        boolean repeated)    {        String dcname = element;        if (qualifier != null)        {            dcname = element + "_" + qualifier;        }        // Names to add        List series = new LinkedList();        List numbers = new LinkedList();        if (repeated)        {            series = getRepeatedParameter(request, dcname + "_series");            numbers = getRepeatedParameter(request, dcname + "_number");            // Find out if the relevant "remove" button was pressed            String buttonPressed = UIUtil.getSubmitButton(request, "");            String removeButton = "submit_" + dcname + "_remove_";            if (buttonPressed.startsWith(removeButton))            {                int valToRemove = Integer.parseInt(                    buttonPressed.substring(removeButton.length()));                series.remove(valToRemove);                numbers.remove(valToRemove);            }        }        else        {            // Just a single name            String s = request.getParameter(dcname + "_series");            String n = request.getParameter(dcname + "_number");            // Only put it in if there was a name present            if (s != null && !s.equals(""))            {                series.add(s);                numbers.add(n);            }        }        // Remove existing values        item.clearDC(element, qualifier, Item.ANY);        // Put the names in the correct form        for (int i = 0; i < series.size(); i++)        {            String s = ((String) series.get(i)).trim();            String n = ((String) numbers.get(i)).trim();            item.addDC(element, qualifier, null,                new DCSeriesNumber(s, n).toString());        }    }