code: public static DataResource fromName(String name)
      {
          String[] parts = StringUtils.split(name, '/');
  
          if (!parts[0].equals(ROOT_NAME) || parts.length > 3)
              throw new IllegalArgumentException(String.format("%s is not a valid data resource name", name));
  
          if (parts.length == 1)
              return root();
  
          if (parts.length == 2)
              return keyspace(parts[1]);
  
          return columnFamily(parts[1], parts[2]);
      }
docs: Parses a data resource name into a DataResource instance.
  
  @param name Name of the data resource.
  @return DataResource instance matching the name.