question: protected static Object unmarshalValue ( Class < ? > type , ObjectInput in ) throws IOException , ClassNotFoundException { if ( type . isPrimitive ( ) ) { if ( type == int . class ) { return Integer . valueOf ( in . readInt ( ) ) ; } else if ( type == boolean . class ) { return Boolean . valueOf ( in . readBoolean ( ) ) ; } else if ( type == byte . class ) { return Byte . valueOf ( in . readByte ( ) ) ; } else if ( type == char . class ) { return Character . valueOf ( in . readChar ( ) ) ; } else if ( type == short . class ) { return Short . valueOf ( in . readShort ( ) ) ; } else if ( type == long . class ) { return Long . valueOf ( in . readLong ( ) ) ; } else if ( type == float . class ) { return Float . valueOf ( in . readFloat ( ) ) ; } else if ( type == double . class ) { return Double . valueOf ( in . readDouble ( ) ) ; } else { throw new Error ( "Unrecognized primitive type: " + type ) ; } } else { return in . readObject ( ) ; } }
target:  Unmarshal value from an ObjectInput source using RMI's serialization format for parameters or return values.