code: private synchronized void updateDeploymentMap(DigitalObject obj,
                                                    Connection c)
              throws SQLException {
  
          Set<RelationshipTuple> sDefs =
                  obj.getRelationships(Constants.MODEL.IS_DEPLOYMENT_OF, null);
          Set<RelationshipTuple> models =
                  obj.getRelationships(Constants.MODEL.IS_CONTRACTOR_OF, null);
  
          for (RelationshipTuple sDefTuple : sDefs) {
              String sDef = sDefTuple.getObjectPID();
              for (RelationshipTuple cModelTuple : models) {
                  String cModel = cModelTuple.getObjectPID();
                  addDeployment(cModel, sDef, obj, c);
              }
          }
      }
docs: Update the registry and deployment cache to reflect the latest state of
  reality.
  
  @param obj
  DOReader of a service deployment object