@SuppressWarnings("deprecation") private static String getExistingSource(Source source) { if (source != null) { return (source.getSourceClientId() != null) ? source.getSourceClientId().getPath() : source.getSourceOrcid().getPath(); } return null; }
@SuppressWarnings("deprecation") private static String getExistingSource(Source source) { if (source != null) { return (source.getSourceClientId() != null) ? source.getSourceClientId().getPath() : source.getSourceOrcid().getPath(); } return null; }