for (int i = 0; i < fields.length; i++) {
Class paramClass = paramClassMap.get(fields[i]);
fieldValues.put((String)fields[i], in.readObject(paramClass));//important to use the class so that hessian creates arrays of correct type
}
TranscriptionInput ti = new TranscriptionInput() {
@Override
public <T> T readObject(Parameter param, boolean client) throws Exception {
return (T) fieldValues.get(param.getName());
}
};