code: private static AssetLink createAssetLinkForText(String text) {
      AssetLink assetLink = new AssetLink();
      TextAsset textAsset = new TextAsset();
      textAsset.setAssetText(text);
      assetLink.setAsset(textAsset);
      return assetLink;
    }
docs: Creates an {@link AssetLink} containing a {@link TextAsset} with the specified string.
  
  @param text the text for the text asset.
  @return a new {@link AssetLink}