class JournalWaitDelegator extends BaseDelegator implements IJournalWaitDelegator {

    @Override
    public void journalWait(final JournalWaitOptions opts) throws P4JavaException {
        List<Map<String, Object>> resultMaps = execMapCmdList(JOURNALWAIT,
                processParameters(opts, server), null);

        if (nonNull(resultMaps)) {
            for (Map<String, Object> map : resultMaps) {
                // p4ic4idea: use IServerMessage
                ResultMapParser.handleErrors(ResultMapParser.toServerMessage(map));
            }
        }
    }

    public  JournalWaitDelegator(final IOptionsServer server);

}