GeostoreActionConfiguration geoStoreCfg = createConfiguration();
geoStoreCfg.setShortResource(getShortResource);
geoStoreCfg.setOperation(GeostoreOperation.Operation.SEARCH);
GeostoreAction action = new GeostoreAction(geoStoreCfg);
action.setTempDir(tempDir);
SingleFileActionExecutor.execute(action, tmpFile);
List ret = getShortResource
? action.getShortResourceList()
: action.getResourceList();
return ret == null ? Collections.EMPTY_LIST : ret;
} catch(Exception e) {
throw new GeoStoreException("Error while searching in GeoStore", e);
} finally {