this.filename = (candidacyDocument.getFile() != null) ? candidacyDocument.getFile() .getFilename() : null;
    public CandidacyDocumentUploadBean(CandidacyDocument candidacyDocument) {        super();        this.documentDescription = candidacyDocument.getDocumentDescription();        this.fileUploadTime = candidacyDocument.getFileUploadTime();        this.candidacyDocument = new DomainReference<CandidacyDocument>(candidacyDocument);    }