* @param runnable the {@code Runnable} to be set in the new {@code Thread}.
* @param threadName the name of the new {@code Thread}.
* @return the construct {@code Thread} instance.
*/
static Thread createThread(final Runnable runnable, final String threadName) {
return ! WildFlySecurityManager.isChecking() ? new Thread(runnable, threadName) : doPrivileged(new CreateThreadAction(runnable, threadName));
}