title: Spring - How to handle an empty value in bean
body: <p>I would like to ask how to handle a case if I get an empty value in bean.</p>
  
  <p>the scenario is that I have a spring that load a property file and store the new property (that I just added) to <code>myProp</code> value:</p>
  
  <pre><code>&lt;bean id="ConfigurationUtility" class="configuration.ConfigurationUtility"&gt;
      &lt;property name="UntilTimeInQuote" value="myProp"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>When the property set to <code>true</code> or <code>false</code> everything works fine and as expected. However, I want to handle a case that the property does not exist in the property file at all, meaning it gets <code>null</code>.</p>
  
  <p>How to catch that state and handle in the code?</p>