Added custom thread pools profiles. Refactored custom Java ExceutorService registration to use a ThreadPoolBuilder.