When an unsupported type is passed to getObject(int|String, Class) the error message always says that "java.lang.Class" is unsupported instead of the actual type.