Assume ${\bf x} \in \mathbb{R}^n$ denotes a real-valued bounded random variable with a distribution measured on the Borel space $(\mathbb{R}^n,\mathcal{B}^n)$. Let $f:\mathbb{R}^n\to\mathbb{R}$ denote a bounded Borel measureable function. Then, the following expectation value for any Borel set $B$
$$ E[f({\bf x}){\bf 1}_{{\bf x}\in B}] = \int_B f({\bf x}) dP $$
is bounded.
Is there any reason that the $\sup_{B\in\mathcal{B}^n} E[f({\bf x}){\bf 1}_{{\bf x}\in B}]$ occurs at a certain Borel set $B$ or could there just be convergence towards the supremum?