001/* 002 * SPDX-FileCopyrightText: none 003 * SPDX-License-Identifier: CC0-1.0 004 */ 005 006package gov.nist.secauto.oscal.lib.model; 007 008import gov.nist.secauto.oscal.lib.model.BackMatter.Resource; 009import gov.nist.secauto.oscal.lib.model.metadata.IBackMatter; 010 011import java.util.UUID; 012 013import edu.umd.cs.findbugs.annotations.NonNull; 014 015public abstract class AbstractOscalInstance implements IOscalInstance { 016 017 @Override 018 public Resource getResourceByUuid(@NonNull UUID uuid) { 019 IBackMatter backMatter = getBackMatter(); 020 021 Resource retval = null; 022 if (backMatter != null) { 023 retval = backMatter.getResourceByUuid(uuid); 024 } 025 return retval; 026 } 027 028}