infoWrittenEvaluation = InfoWrittenEvaluation.newInfoFromDomain(writtenEvaluation);
infoWrittenEvaluation = InfoWrittenTest.newInfoFromDomain((IWrittenTest)writtenEvaluation);
    public static InfoWrittenEvaluation newInfoFromDomain(IWrittenEvaluation writtenEvaluation) {        InfoWrittenEvaluation infoWrittenEvaluation = null;        if (writtenEvaluation != null) {            if (writtenEvaluation instanceof IExam) {                infoWrittenEvaluation = InfoExam.newInfoFromDomain((IExam) writtenEvaluation);            } else if (writtenEvaluation instanceof IWrittenTest) {                infoWrittenEvaluation = InfoWrittenEvaluation.newInfoFromDomain(writtenEvaluation);            } else {                infoWrittenEvaluation = new InfoWrittenEvaluation();                infoWrittenEvaluation.copyFromDomain(writtenEvaluation);            }        }        return infoWrittenEvaluation;    }