return this.getClazz().newInstance();
} else {
return localConstructor.newInstance(EMPTY_OBJECT_ARRAY);
}
} catch (InstantiationException e) {
throw new SerializationException("Could not create instance of " + this.className + " - " + e.getMessage(), e);
} catch (IllegalAccessException e) {
throw new SerializationException("Could not create instance of " + this.className + " - " + e.getMessage(), e);
} catch (InvocationTargetException e) {
throw new SerializationException("Could not create instance of " + this.className + " - " + e.getMessage(), e);
}
}