title: Improper Resource Access Authorization error in checkmarx when reading a property
body: <p>Checkmarx report is showing <code>Improper Resource Access Authorization</code> for the following line.</p>
  <pre><code>String endPoint=prop.getProperty(&quot;endpoint&quot;);
  </code></pre>
  <p>As mentioned in <a href="https://stackoverflow.com/a/57863422/3343195">this</a> answer, I have added access control check before reading the property. But checkmarx report is still showing the error.</p>
  <pre><code>String user=&quot;admin&quot;;
  if(user.equals(&quot;admin&quot;)) {
      String endPoint=prop.getProperty(&quot;endpoint&quot;);
  }
  </code></pre>