try to cleanup the code a bit

git-svn-id: svn://svn.code.sf.net/p/htmlunit/code/trunk@9239 5f5364db-9458-4db8-a492-e30667be6df6
try to simplify the code a bit

git-svn-id: svn://svn.code.sf.net/p/htmlunit/code/trunk@9240 5f5364db-9458-4db8-a492-e30667be6df6
feature naming and minor code optimization

git-svn-id: svn://svn.code.sf.net/p/htmlunit/code/trunk@9241 5f5364db-9458-4db8-a492-e30667be6df6