Variable declarations out of for loop

Moved variable declarations for UserBean and UserEntity out of For loop
in the RESTAPI Dao Implementation