ds.setName(dataset.getName());
ds.setDescription(dataset.getDescription());
//defines correct dataset detail
if(dataset.getType().equalsIgnoreCase(DataSetConstants.DS_FILE)){
dsDetail = new FileDataSetDetail();
String fileName = dataset.getFileName();
if(fileName!=null && !fileName.equals("")){
((FileDataSetDetail)dsDetail).setFileName(fileName);
}
}else if(dataset.getType().equalsIgnoreCase(DataSetConstants.DS_JCLASS)){