#4644 reverted rest portlet in 2.5.x

only for master-2.5