fixed problem with lazy initialization - no session or session was closed during creation json in response body from employee object. problem was with set of roles that employee contains. when get roles was invoked it was trying to get that data, but it was lazy initialized and when json was trying to get it in controller it was out of session