@SuppressWarnings("unchecked") private static VdcActionParametersBase deserializeParameters(String payload, String className) { if (className == null) { return null; } Class<Serializable> actionParamsClass = (Class<Serializable>) ReflectionUtils.getClassFor(className); return (VdcActionParametersBase) SerializationFactory.getDeserializer().deserialize(payload, actionParamsClass); }
@SuppressWarnings("unchecked") private static VdcReturnValueBase deserializeReturnValue(String payload, String className) { if (className == null) { return null; } Class<Serializable> retValueClass = (Class<Serializable>) ReflectionUtils.getClassFor(className); return (VdcReturnValueBase) SerializationFactory.getDeserializer().deserialize(payload, retValueClass); }