@Override
 public List<? extends RefinedObjectClassDefinition> getRefinedDefinitions(ShadowKindType kind) {
   List<RefinedObjectClassDefinition> rv = new ArrayList<>();
   for (RefinedObjectClassDefinition def : getRefinedDefinitions()) {
     if (MiscSchemaUtil.matchesKind(kind, def.getKind())) {
       rv.add(def);
     }
   }
   return rv;
 }
  public static List<String> getIntentsForKind(RefinedResourceSchema rSchema, ShadowKindType kind) {
    List<String> intents = new ArrayList<>();
    for (ObjectClassComplexTypeDefinition objClassDef : rSchema.getObjectClassDefinitions()) {
      if (objClassDef.getKind() == kind) {
        intents.add(objClassDef.getIntent());
      }
    }

    return intents;
  }