class DepotDelegator extends BaseDelegator implements IDepotDelegator {

    @Override
    public IDepot getDepot(final String name) throws P4JavaException {
        Validate.notBlank(name, "Depot name shouldn't null or empty");

        List<Map<String, Object>> resultMaps = execMapCmdList(DEPOT, new String[]{"-o", name},
                null);
        return ResultListBuilder.buildNullableObjectFromNonInfoMessageCommandResultMaps(
                resultMaps,
                // p4ic4idea: explicit generics
                new Function<Map<String, Object>, IDepot>() {
                    @Override
                    // p4ic4idea: explicit generics
                    public IDepot apply(Map<String, Object> map) {
                        return new Depot(map);
                    }
                }
        );
    }

    public  DepotDelegator(final IOptionsServer server);

}