Fix bean context and continues REST dev.

Signed-off-by: salomax <salomax@salomax>