String syncedLabel; if (matchesSyncedLabel(shortLabel)) { syncedLabel = shortLabel; } else if (matchesMotSyncedLabel(shortLabel)) {
&& ExperimentUtils.matchesSyncedLabel(synced.getShortLabel())) { return BehaviourType.NEW; candidatePubmedId) && ExperimentUtils.matchesSyncedLabel(candidate.getShortLabel())) { throw new PersisterUnexpectedException("Trying to persist an Experiment with a short label that already exists in the database," + " but they have different pubmed IDs: " + synced.getShortLabel() + " (Existing: " + syncedPubmedId + ", Found: " + candidatePubmedId + ")");
String syncedLabel = null; if (!(matchesMotSyncedLabel(shortLabel) || matchesSyncedLabel(shortLabel))) { throw new IllegalArgumentException("Short label with wrong format: " + shortLabel);
String syncedLabel = null; if (!(matchesMotSyncedLabel(shortLabel) || matchesSyncedLabel(shortLabel))) { throw new IllegalArgumentException("Short label with wrong format: " + shortLabel);