added support for Java's Executor model