else { rc = Integer.toString(c); }
    public String getImageCounter(String name)    {        // trigger first putting folder into DB        getCounter();        String s = name.substring(0, name.indexOf('.'));                String rc = null;        Integer theImage = (Integer) images.get(s);        imageNum = theImage.intValue();        int c = imageCounters[imageNum - 1];        if (null != dBManager)        {            // increment counter only once per Session            if (c == -1)            {                try                {                    c = dBManager.getAndIncImageCounter(folderPath,                            imageFiles[imageNum - 1]);                                        imageCounters[imageNum - 1] = c;                                        rc = Integer.toString(c);                }                catch (SQLException e)                {                    appContext.log(e.getMessage(),e);                    rc = null;                }            }        }        return rc;    }