remove print out
add deprecated mark
add testcase for ticket 2763
solved ticket https://issues.jboss.org/browse/RAILO-2763