Towards automating dynamic analysis for behavioral design pattern detection