Updates to remove need for client using this framework to call processSession. This is now handled inside the framework.