Is there a Java equivalent for following Ruby method ?
ObjectSpace.reachable_objects_from: This method returns all the objects directly reachable from the given object.
Reference: Look for ObjectSpace.reachable_objects_from in the following document http://globaldev.co.uk/2013/03/ruby-2-0-0-in-detail/