title: Handle null exception get property method
body: <p>I have a config file which I'm reading via java.util.Properties class. When property is not present in a file getProperty() method returns null. I would like to throw an exception if any property is not present in config file. So how should I do it? Need best way to do it.</p>