Fix a runtime exception between the javax and google Provider interface.