code: private ManagedSchema getManagedSchema(String tableName, String entityName) {
      ManagedSchema managedSchema = getManagedSchemaFromSchemaMap(tableName,
          entityName);
      if (managedSchema == null) {
        refreshManagedSchemaCache(tableName, entityName);
        managedSchema = getManagedSchemaFromSchemaMap(tableName, entityName);
        if (managedSchema == null) {
          String msg = "Could not find managed schemas for " + tableName + ", "
              + entityName;
          throw new SchemaNotFoundException(msg);
        }
      }
      return managedSchema;
    }
docs: Get the ManagedSchema entity for the tableName, entityName managed schema.
  
  @param tableName
  The table name of the managed schema.
  @param entityName
  The entity name of the managed schema.
  @return The ManagedSchema entity
  @throws SchemaNotFoundException