};
// check if the thread pool is available
final ThreadPool pool = Environment.THREAD_POOL;
if ( pool != null ) {
pool.execute(task);
} else {
// if we don't have a thread pool, we create the thread directly
// (this should never happen for jobs, but is a safe fallback and
// allows to call this method for other background processing.
new Thread(task).start();