public string execute (req,res){
call method of another class instance method()// for db access
}
This is
thread safe if it is a method in another class that is declared and instaniated within a service method. It is not thread safe if it is another method within a servlet class, or thread class.