Create entityContext master method