final Controller controller = controllerProvider.get();
window.addKeyListener(controller);
window.addMouseListener(controller);
window.addGLEventListener(controller);
window.addWindowListener(new WindowAdapter() {
@Override
public void windowDestroyNotify(WindowEvent e) {
logger.info("Window is closed.");
window.destroy();
System.exit(0);