class ExternalTaskPoolAdapter implements TaskPoolAdapter {

    @Override
    public UndertowTaskPoolEnum taskPoolType() {
        return UndertowTaskPoolEnum.EXTERNAL_TASK_POOL;
    }

    @Override
    public ExecutorAdapter<?> adapt(Object obj) {<FILL_FUNCTION_BODY>}
}

        String taskPoolClassName = obj.getClass().getSimpleName();
        val handler = TaskPoolHandlerFactory.getTaskPoolHandler(taskPoolClassName);
        Object executor = ReflectionUtil.getFieldValue(obj.getClass(), handler.taskPoolType().getInternalExecutor(), obj);
        return handler.adapt(executor);
    
<no_super_class>