changed finding first method to find the first from the class hierarchy not the first as returned by the jvm