NXP-14165: fix page provider page count when pageSize > maxPageSize
NXP-14970 dont replace port or scheme when local flag is activated