newConstructorForSerializationMethod = cl.getDeclaredMethod(
"newConstructorForSerialization", new Class[] {Constructor.class, Class.class});
newConstructorForSerializationMethod.setAccessible(true);
}
catch(RuntimeException e) {
throw new ObjenesisException(e);
}
catch(ClassNotFoundException e) {
throw new ObjenesisException(e);
}
catch(NoSuchMethodException e) {
throw new ObjenesisException(e);
}
}
}