class DepotsDelegator extends BaseDelegator implements IDepotsDelegator {

    @Override
    public List<IDepot> getDepots() throws ConnectionException, RequestException, AccessException {
        List<IDepot> metadataArray = new ArrayList<>();

        List<Map<String, Object>> resultMaps = execMapCmdList(DEPOTS, new String[0], null);

        if (nonNull(resultMaps)) {
            for (Map<String, Object> map : resultMaps) {
                if (!ResultMapParser.handleErrorStr(map)) {
                    metadataArray.add(new Depot(map));
                }
            }
        }

        return metadataArray;
    }

    public  DepotsDelegator(final IOptionsServer server);

}