Here you can find the source of cloneClass(Class> clazz)
public static Class<?> cloneClass(Class<?> clazz)
//package com.java2s; //License from project: Apache License public class Main { public static Class<?> cloneClass(Class<?> clazz) { Class<?> newClazz = null; try {/*from w w w. ja v a 2 s . c o m*/ newClazz = Class.forName(clazz.getName()); } catch (ClassNotFoundException e) { e.printStackTrace(); } return newClazz; } }