throw new UnsupportedOperationException();
}
public void save() {
EntityManager em = ResourceUtils.getEntityManager();
Experiment_Metadata existingExpMetaData = em.find(Experiment_Metadata.class, expID);
em.close();
em = ResourceUtils.getEntityManager();
em.getTransaction().begin();
Experiment_Metadata experimentMetadata = new Experiment_Metadata();
experimentMetadata.setExperiment_ID(expID);
byte[] contentBytes = metadata.getBytes();
experimentMetadata.setMetadata(contentBytes);
if (existingExpMetaData != null) {
existingExpMetaData.setMetadata(contentBytes);
existingExpMetaData.setExperiment_ID(expID);
experimentMetadata = em.merge(existingExpMetaData);