fixed minor problem with RestController that was breaking 2 tests.
fixed minor problem with RestController that was breaking 2 tests.

--HG--
extra : convert_revision : svn%3A77541ad4-5f01-0410-9ede-a1b63cd9a898/trunk%406220

lucius-feng/tg2,lucius-feng/tg2