final Object[] unserialized = new Object[params.length];
int i = 0;
for (final Object o : params) {
if (SerializationWrapper.class.isInstance(o)) {
final SerializationWrapper wrapper = SerializationWrapper.class.cast(o);
try {
unserialized[i] = serializer.deserialize(wrapper.getData(), body.getMethodInstance().getDeclaringClass().getClassLoader().loadClass(wrapper.getClassname()));
} catch (final ClassNotFoundException e) {
throw new RuntimeException(e);
}
} else {
unserialized[i] = o;