Dynamic Programming Framework with Local Execution of ASP on Tree Decompositions