}  if (cache == null) { Debug.message("dted", getName()+"|DTEDFrameCacheLayer can't add anything to map because the DTEDFrameCache has not been set.");
    public synchronized OMGraphicList prepare() {        if (isCancelled()) {            Debug.message("dted", getName()+"|DTEDFrameCacheLayer.prepare(): aborted.");            return null;        }        Projection projection = getProjection();        if (projection == null) {            Debug.output("DTED Layer needs to be added to the MapBean before it can draw images!");            return new OMGraphicList();        }        // Check to make sure the projection is EqualArc        if (!(projection instanceof EqualArc)) {            if (!firstProjectionWarningSent) {                fireRequestInfoLine("  DTED requires an Equal Arc projection (CADRG/LLXY) to view images.");                Debug.output("DTEDFrameCacheLayer: DTED requires an Equal Arc projection (CADRG/LLXY) to view images.");                firstProjectionWarningSent = true;            }            return new OMGraphicList();        }        Debug.message("basic", getName()+"|DTEDFrameCacheLayer.prepare(): doing it");        // Setting the OMGraphicsList for this layer.  Remember, the        // OMGraphicList is made up of OMGraphics, which are generated        // (projected) when the graphics are added to the list.  So,        // after this call, the list is ready for painting.        // call getRectangle();        if (Debug.debugging("dted")) {            Debug.output(                getName()+"|DTEDFrameCacheLayer.prepare(): " +                "calling getRectangle " +                " with projection: " + projection +                " ul = " + projection.getUpperLeft() + " lr = " +                 projection.getLowerRight());         }        OMGraphicList omGraphicList;        if (projection.getScale() < minScale) {            omGraphicList = cache.getRectangle((EqualArc)projection);        } else {            fireRequestInfoLine("  The scale is too small for DTED viewing.");            Debug.error("DTEDFrameCacheLayer: scale (" + projection.getScale() +                         ") is smaller than minimum (" + minScale + ") allowed.");            omGraphicList = new OMGraphicList();        }        /////////////////////        // safe quit        int size = 0;        if (omGraphicList != null) {            size = omGraphicList.size();                    Debug.message("basic", getName()+                          "|DTEDFrameCacheLayer.prepare(): finished with "+                          size+" graphics");            // Don't forget to project them.  Since they are only            // being recalled if the projection hase changed, then we            // need to force a reprojection of all of them because the            // screen position has changed.            omGraphicList.project(projection, true);        } else {            Debug.message("basic", getName()+              "|DTEDFrameCacheLayer.prepare(): finished with null graphics list");        }        return omGraphicList;    }