String myhandle = HandleManager.findHandle(c, myitem);
myhandle = HandleManager.findHandle(c, myitem);
    private Item addItem( Context c, Collection mycollection, String path, String itemname, PrintWriter mapOut )        throws Exception    {        Item myitem = null;        // create workspace item        WorkspaceItem wi = WorkspaceItem.create(c, mycollection, false);        myitem = wi.getItem();        // now fill out dublin core for item        loadDublinCore( c, myitem, path + "/" + itemname + "/" + "dublin_core.xml" );        // and the bitstreams from the contents file        // process contents file, add bistreams and bundles        processContentsFile( c, myitem, path + "/" + itemname, "contents" );        // put item in system        InstallItem.installItem(c, wi);        // now output line to the mapfile        String myhandle = HandleManager.findHandle(c, myitem);                if(mapOut!=null)        {            mapOut.println( itemname + " " + myhandle );               }        return myitem;    }