private void validateParent(Map<String, Object> properties) throws AmbariException {
    Resource.Type parentType = getRequestType(properties);
    if (! typeRegistrations.get(parentType).instanceExists(keyPropertyIds, properties)) {
      throw new ParentObjectNotFoundException(String.format(
       "Parent resource doesn't exist: %s", getRequestForeignKeys(properties)));
    }
  }
Validate that parent resources exist.

@param properties  request properties

@throws ParentObjectNotFoundException  if the parent resource doesn't exist
@throws AmbariException if an error occurred while attempting to validate the parent
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ArtifactResourceProvider.java