better way to find the WebContent folder

The path to the "http://localhost:8080/CognitiveApp/files/..." can be
found via ServletContext's method "getRealPath".  So actually no need in
localhost.properties file.