Reduced code duplication by using the RunnableFuture inside the PriorityScheduledExecutorServiceWrapper