protected Platform getPlatform(Hybridization hybridization) throws DataRetrievalException { ArrayDesign arrayDesign = hybridization.getArrayDesign(); if (arrayDesign == null) { throw new DataRetrievalException( "There is no array design associated with the array for the hybridization " + hybridization.getName() + ", unable to load array data"); } Platform platform = getDao().getPlatform(arrayDesign.getName()); if (platform == null) { throw new DataRetrievalException( "The platform named " + arrayDesign.getName() + " hasn't been loaded into the system"); } return platform; }