code: public static TimerTask toTimerTask(Runnable runnable)
     {
  	if(runnable instanceof TimerTask)
  	   return (TimerTask) runnable;
  	
  	return new TimerTaskRunnerAdapter(runnable);
     }
docs: Convert timer task to a runnable
  @param runnable
  @return timer task for the runnable