public CareSpellShortVo getCareSpell(CareSpellRefVo careSpellRef) { if(careSpellRef == null || careSpellRef.getID_CareSpell()==null) throw new CodingRuntimeException("Cannot get CareSpell value on null careSpellRef."); DomainFactory factory = getDomainFactory(); CareSpell domCareSpell=(CareSpell) factory.getDomainObject(CareSpell.class, careSpellRef.getID_CareSpell()); return CareSpellShortVoAssembler.create(domCareSpell); }