extract TaskManager into own class with Javadocs