throws RegistryException {
if (provenanceRegistry != null){
return provenanceRegistry.getExperimentMetadata(experimentId);
}
if (!isExperimentExists(experimentId, true)){
throw new ExperimentDoesNotExistsException(experimentId);
}
ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
ExperimentDataResource data = experiment.getData();
if (data.isExperimentMetadataPresent()){
return data.getExperimentMetadata().getMetadata();