Your MyObjectDetails class does not override the toString method of Object.