It can be handled by defining the key-value pair (MaxAllowedRecords = 10000) in javaserver.properties. So if user wants to increase the MaxAllowedRecords he can simply update the value of the key (MaxAllowedRecords) in javaserver.properties.
usage : - Update javaserver.properties key
--
MaxAllowedRecords = <<user max value>>
e.g :- MaxAllowedRecords = 550000
Abitav Dubey.