title: Extract value from ValueProvider in Apache Beam
body: <p>I have a runtime value that I'm getting in my Apache Beam program. I need to access that value but Beam does not allow me to read that value unless I'm reading it from within a transfrom like ParDo.</p>
  
  <p>If I try to access that value outside any transform, it gives me an error saying:
  "Not called from a runtime context".</p>
  
  <p>How to read such values?</p>
  
  <p>P.S. I'm using a template of the program.</p>