Make context available statically instead of passing through PollSensor-related constructors
Change setStaticContext to setStaticApplicationContext