add a function to create a hash map out of static fields in java classes