Support overloaded methods by runtime type checks to determine which overloaded Java method to call