title: Getting a list of private properties of Java class / object
body: <p>How can I get a list of all the private properties of Java object used in getters and setters. I tried <code>PropertyUtils</code> and <code>MethodUtils</code> but no luck. Now I am trying to use <code>getDeclaredFields()</code> of the Class object which returns me a list of Field objects and then check if that is a private property is that a way to go? Or are there any better solutions to this.</p>