*
* @see #buildCallGraph(StateMachine)
*/
private List<SootMethod> handleNewExpression(StateMachine stateMachine,
SootMethod method, Stmt st) {
JNewExpr newInstance = (JNewExpr) ((AssignStmt) st).getRightOp();
// TODO generalize to AbstractHandler
// the only instantiation we are interested in is the
// SubmitHandler instantiation. Any other instantiations
// will have to have a method invoked at some later
// point in time, in order to change the control flow.
// When that happens, it is caught by the analysis.
RefType type = newInstance.getBaseType();
SootClass submitClass = type.getSootClass();
List<SootMethod> queue = new ArrayList<SootMethod>();
if (resolver.isSubmitHandler(submitClass))
handleNewSubmitHandler(stateMachine, method, st, submitClass, queue);
return queue;