Here you can find the source of loadClass(T instance)
public static <T> Class<T> loadClass(T instance)
//package com.java2s; //License from project: Apache License public class Main { public static <T> Class<T> loadClass(T instance) { if (instance != null) { return (Class<T>) instance.getClass(); }/*from ww w .ja v a 2s .co m*/ return null; } }