Implementing the PortableObject.readExternal and writeExternal Methods