public void execute(Runnable task){
  Executor executor=getExecutor();
  if (executor == null)   task.run();
 else   executor.execute(task);
}

public void execute ( Runnable task ) { Executor executor = getExecutor ( ) ; if ( executor == null ) task . run ( ) ; else executor . execute ( task ) ; }
execute an arbitrary task on the executor of this resource or the first parent that defines its own executor . if no parent defines an executor , the thread that calls this method executes the specified task .
