Require apache main class before using its resources.