class StatDelegator extends BaseDelegator implements IStatDelegator {

    @Override
    public IStreamIntegrationStatus getStreamIntegrationStatus(final String stream,
                                                               final StreamIntegrationStatusOptions opts) throws P4JavaException {

        List<Map<String, Object>> resultMaps = execMapCmdList(ISTAT,
                processParameters(opts, null, new String[]{stream}, server), null);

        return ResultListBuilder.buildNullableObjectFromNonInfoMessageCommandResultMaps(
                resultMaps,
                new Function<Map, IStreamIntegrationStatus>() {
                    @Override
                    public IStreamIntegrationStatus apply(Map map) {
                        return new StreamIntegrationStatus(map);
                    }
                }
        );
    }

    public  StatDelegator(final IOptionsServer server);

}