the namespace alias mapping simply did not work in all cases. use regular expression to extract js class name.