pt.setValue("test"+System.currentTimeMillis());
pt.setValue("int8");
    public static Pixels createPixelGraph(Pixels example)    {        Pixels p = new Pixels();        AcquisitionContext ac = new AcquisitionContext();        PhotometricInterpretation pi = new PhotometricInterpretation();        AcquisitionMode mode = new AcquisitionMode();        PixelsType pt = new PixelsType();        DimensionOrder dO = new DimensionOrder();        PixelsDimensions pd = new PixelsDimensions();        Image i = new Image();        Channel c = new Channel();                if (example != null)        {            p.setId(example.getId());            p.setVersion(example.getVersion());                        // everything else unloaded.            ac.setId(example.getAcquisitionContext().getId());            ac.unload();            pt.setId(example.getPixelsType().getId());            pt.unload();            dO.setId(example.getDimensionOrder().getId());            dO.unload();            pd.setId(example.getPixelsDimensions().getId());            pd.unload();            i.setId(example.getImage().getId());            i.unload();            c.setId(((Channel)example.getChannels().get(0)).getId());            c.unload();        }                else        {                    mode.setValue("test"+System.currentTimeMillis());            pi.setValue("test"+System.currentTimeMillis());                                ac.setPhotometricInterpretation(pi);            ac.setMode(mode);                    pt.setValue("test"+System.currentTimeMillis());                        dO.setValue("XXXX"+System.currentTimeMillis());                        pd.setSizeX(new Float(1.0));            pd.setSizeY(new Float(1.0));            pd.setSizeZ(new Float(1.0));            c.setPixels(p);                        i.setName("test");                }        p.setSizeX(new Integer(1));        p.setSizeY(new Integer(1));        p.setSizeZ(new Integer(1));        p.setSizeC(new Integer(1));        p.setSizeT(new Integer(1));        p.setSha1("09bc7b2dcc9a510f4ab3a40c47f7a4cb77954356"); // "pixels"        p.setAcquisitionContext(ac);        p.setPixelsType(pt);        p.setDimensionOrder(dO);        p.setPixelsDimensions(pd);        p.setImage(i);                List channels = new ArrayList();        channels.add(c);        p.setChannels(channels);        // Reverse links        // FIXME i.setActivePixels(p);        p.setDetails(new Details());        return p;    }