class ByIdResultSelector implements ResultSelector {

    @Override
    public Optional<ResultAction> get(final Run<?, ?> build) {
        List<ResultAction> actions = build.getActions(ResultAction.class);
        for (ResultAction action : actions) {
            if (id.equals(action.getId())) {
                return Optional.of(action);
            }
        }
        return Optional.empty();
    }

    public  ByIdResultSelector(final String id);

}