Require apache main class before using its resources.
Merge pull request #2 from jonhattan/master

Require apache main class before using its resources.