DCDate d = new DCDate(currentDateIssued[0]);
DCDate d = new DCDate(currentDateIssued[0].value);
    public Item archive()        throws SQLException, AuthorizeException    {        // FIXME: Check auth        log.info(LogManager.getHeader(ourContext,            "archive_item",            "workflow_item_id=" + getID() + "item_id=" + item.getID() +                "collection_id=" + collection.getID()));        // Remove workflow item        DatabaseManager.delete(ourContext, wfRow);        // Add item to collection        collection.addItem(item);        // FIXME: Assign handle        // FIXME: Add handle as identifier.uri DC value        // Add format.mimetype and format.extent DC values        Bitstream[] bitstreams = item.getNonInternalBitstreams();                for (int i = 0; i < bitstreams.length; i++)        {            BitstreamFormat bf = bitstreams[i].getFormat();            item.addDC("format",                "extent",                null,                String.valueOf(bitstreams[i].getSize()));            item.addDC("format", "mimetype", null, bf.getMIMEType());        }        // Assign issue date, if none exists, and build up provenance        DCDate now = DCDate.getCurrent();        String currentDateIssued[] = item.getDC("date",            "issued",            null);        String provDescription = "Made available in DSpace on " + now +            " (GMT).";        if (currentDateIssued.length == 0)        {            item.addDC("date", "issued", null, now.toString());        }        else        {            DCDate d = new DCDate(currentDateIssued[0]);            provDescription = provDescription + "  Previous issue date: " +                d.toString();        }        // Add provenance description        item.addDC("description", "provenance", "en", provDescription);        // Set in_archive bit        item.setArchived(true);        item.update();                // Log the event        log.info(LogManager.getHeader(            ourContext,            "install_item",            "workflow_id=" + getID() + ", item_id=" + item.getID() +            "handle=FIXME"));        return item;    }