public DataSetTypeVo getDataset(AnalyteRefVo analyte) { if(analyte == null || analyte.getID_Analyte() == null) throw new DomainRuntimeException("Invalid analyte"); ChartResultAnalyteWithDatasetVo resultAnalyte = ChartResultAnalyteWithDatasetVoAssembler.create((Analyte)getDomainFactory().getDomainObject(Analyte.class, analyte.getID_Analyte())); return resultAnalyte.getDatasetType(); }