Add/Modify some helper functions in framework
Add/Modify some helper functions in framework

Review URL: http://codereview.appspot.com/4244041
linqiangl/compatibility-detector,linqiangl/compatibility-detector,linqiangl/compatibility-detector