Update LocationHandlerRequest.java

Refactored code.