private void resetLibraryToCreateMetaData(SampleDraft clone, String libraryTypeToCreate) {
   for (SampleDraftMeta sdm : clone.getSampleDraftMeta()) {
     if (sdm.getK().endsWith("typeOfHelpLibraryRequested")) {
       sdm.setV(libraryTypeToCreate);
     }
     sdm.setSampleDraftId(clone.getId()); // must do this for every meta entry
     sampleService.getSampleDraftMetaDao().save(sdm); // then must do this for every meta entry
   }
 }
 @Override
 public List<String> getTypeOfHelpLibrariesRequestedList(
     List<SampleDraftMeta> sampleDraftMetaList) {
   List<String> typeOfHelpLibrariesRequestedList = new ArrayList<String>();
   for (SampleDraftMeta sdm : sampleDraftMetaList) {
     if (sdm.getK().endsWith("typeOfHelpLibraryRequested")) {
       String[] stringArray = StringUtils.split(sdm.getV(), ",");
       for (int i = 0; i < stringArray.length; i++) {
         typeOfHelpLibrariesRequestedList.add(stringArray[i].trim());
       }
       break;
     }
   }
   return typeOfHelpLibrariesRequestedList;
 }