Added entity insertion to SR contexts