reset requestCache and securityContextRepository to httpsessioncache and HttpSessionSecurityContextRepository to that defined in spring security core ... as they were overwritten in rest plugin... and added /api//