getRouterContext() helper function
Move property file writing methods to Util