Buggy code:
public class PeerReviewForm implements Serializable , ErrorsInterface { private static final long serialVersionUID = - 6291184427922193706L ; private List < String > errors = new ArrayList < String > ( ) ; private Visibility visibility ; private Text putCode ; private List < WorkExternalIdentifier > externalIdentifiers ; private Text url ; private Text role ; private Text type ; private Text orgName ; private Text city ; private Text region ; private Text country ; private String countryForDisplay ; private Text disambiguatedOrganizationSourceId ; private Text disambiguationSource ; private Date completionDate ; private PeerReviewSubjectForm subjectForm ; private String source ; private String sourceName ; private Date createdDate ; private Date lastModified ; public List < String > getErrors ( ) { } public void setErrors ( List < String > errors ) { } public Visibility getVisibility ( ) { } public void setVisibility ( Visibility visibility ) { } public Text getPutCode ( ) { } public void setPutCode ( Text putCode ) { } public List < WorkExternalIdentifier > getExternalIdentifiers ( ) { } public void setExternalIdentifiers ( List < WorkExternalIdentifier > externalIdentifiers ) { } public Text getUrl ( ) { } public void setUrl ( Text url ) { } public Text getRole ( ) { } public void setRole ( Text role ) { } public Text getType ( ) { } public void setType ( Text type ) { } public Text getCity ( ) { } public void setCity ( Text city ) { } public Text getRegion ( ) { } public void setRegion ( Text region ) { } public Text getCountry ( ) { } public void setCountry ( Text country ) { } public String getCountryForDisplay ( ) { } public void setCountryForDisplay ( String countryForDisplay ) { } public Text getDisambiguatedOrganizationSourceId ( ) { } public void setDisambiguatedOrganizationSourceId ( Text disambiguatedOrganizationSourceId ) { } public Text getDisambiguationSource ( ) { } public void setDisambiguationSource ( Text disambiguationSource ) { } public Date getCompletionDate ( ) { } public void setCompletionDate ( Date completionDate ) { } public PeerReviewSubjectForm getSubjectForm ( ) { } public void setSubjectForm ( PeerReviewSubjectForm subject ) { } public String getSource ( ) { } public void setSource ( String source ) { } public String getSourceName ( ) { } public void setSourceName ( String sourceName ) { } public Date getCreatedDate ( ) { } public void setCreatedDate ( Date createdDate ) { } public Date getLastModified ( ) { } public void setLastModified ( Date lastModified ) { } public Text getOrgName ( ) { } public void setOrgName ( Text orgName ) { } public PeerReview toPeerReview ( ) { PeerReview peerReview = new PeerReview ( ) ; if ( ! ( PojoUtil . isEmpty ( putCode ) ) ) { <START_BUG> peerReview . setPutCode ( null ) ; <END_BUG> } if ( ( visibility ) != null ) { peerReview . setVisibility ( visibility ) ; } if ( ( completionDate ) != null ) { peerReview . setCompletionDate ( new org . orcid . jaxb . model . common . FuzzyDate ( completionDate . toFuzzyDate ( ) ) ) ; } if ( ( ( externalIdentifiers ) != null ) && ( ! ( externalIdentifiers . isEmpty ( ) ) ) ) { peerReview . setExternalIdentifiers ( new WorkExternalIdentifiers ( ) ) ; for ( WorkExternalIdentifier extId : externalIdentifiers ) { peerReview . getExternalIdentifiers ( ) . getExternalIdentifier ( ) . add ( extId . toRecordWorkExternalIdentifier ( ) ) ; } } Organization organization = new Organization ( ) ; OrganizationAddress organizationAddress = new OrganizationAddress ( ) ; organization . setAddress ( organizationAddress ) ; if ( ! ( PojoUtil . isEmpty ( orgName ) ) ) { organization . setName ( orgName . getValue ( ) ) ; } if ( ! ( PojoUtil . isEmpty ( city ) ) ) { organizationAddress . setCity ( city . getValue ( ) ) ; } if ( ! ( PojoUtil . isEmpty ( region ) ) ) { organizationAddress . setRegion ( region . getValue ( ) ) ; } if ( ! ( PojoUtil . isEmpty ( country ) ) ) { organizationAddress . setCountry ( Iso3166Country . fromValue ( country . getValue ( ) ) ) ; } if ( ! ( PojoUtil . isEmpty ( disambiguatedOrganizationSourceId ) ) ) { organization . setDisambiguatedOrganization ( new DisambiguatedOrganization ( ) ) ; organization . getDisambiguatedOrganization ( ) . setDisambiguatedOrganizationIdentifier ( disambiguatedOrganizationSourceId . getValue ( ) ) ; organization . getDisambiguatedOrganization ( ) . setDisambiguationSource ( disambiguationSource . getValue ( ) ) ; } peerReview . setOrganization ( organization ) ; if ( ! ( PojoUtil . isEmpty ( role ) ) ) { peerReview . setRole ( Role . fromValue ( role . getValue ( ) ) ) ; } if ( ! ( PojoUtil . isEmpty ( type ) ) ) { peerReview . setType ( PeerReviewType . fromValue ( type . getValue ( ) ) ) ; } if ( ! ( PojoUtil . isEmpty ( url ) ) ) { peerReview . setUrl ( new org . orcid . jaxb . model . common . Url ( url . getValue ( ) ) ) ; } if ( ( subjectForm ) != null ) { Subject subject = new Subject ( ) ; subject . setExternalIdentifiers ( new WorkExternalIdentifiers ( ) ) ; if ( ( ( subjectForm . getWorkExternalIdentifiers ( ) ) != null ) && ( ! ( subjectForm . getWorkExternalIdentifiers ( ) . isEmpty ( ) ) ) ) { subject . setExternalIdentifiers ( new WorkExternalIdentifiers ( ) ) ; for ( WorkExternalIdentifier extId : subjectForm . getWorkExternalIdentifiers ( ) ) { subject . getExternalIdentifiers ( ) . getExternalIdentifier ( ) . add ( extId . toRecordWorkExternalIdentifier ( ) ) ; } }

Fix:
peerReview . setPutCode ( putCode . getValue ( ) ) ;