public boolean get(TileObject stObj) throws StorageException { stObj.setLayerId(idCache.getLayerId(stObj.getLayerName())); stObj.setFormatId(idCache.getFormatId(stObj.getBlobFormat())); stObj.setGridSetIdId(idCache.getGridSetsId(stObj.getGridSetId())); stObj.setParamtersId(idCache.getParametersId(stObj.getParameters())); try { boolean response = wrpr.getTile(stObj); while (stObj.getStatus().equals(Status.LOCK)) { try { Thread.sleep(lockRetryDelay); } catch (InterruptedException e) { e.printStackTrace(); } response = wrpr.getTile(stObj); } return response; } catch (SQLException se) { log.error("Failed to get tile: " + se.getMessage()); } return false; }