I have a class which has not default constructor. And I need a way to get \'blank\' instance of this class. \'blank\' means that after instantiation all class fields should
Having Class instance provided as variable clazz:
ReflectionFactory rf = ReflectionFactory.getReflectionFactory();
Constructor objDef = parent.getDeclaredConstructor();
Constructor intConstr = rf.newConstructorForSerialization(clazz, objDef);
clazz.cast(intConstr.newInstance());
as described in http://www.javaspecialists.eu/archive/Issue175.html