* This method throws exception if there were issues creating the object
* @param Class<?>
* @return Object if one was instantiated, null otherwise
*/
public static Object getInstanceOfClass(Class<?> clazz) {
Objenesis objenesis = new ObjenesisStd();
ObjectInstantiator thingyInstantiator = objenesis.getInstantiatorOf(clazz);
return thingyInstantiator.newInstance();
// try {
// return clazz.newInstance();
// } catch (InstantiationException e) {
// // TODO Auto-generated catch block