Well, actually, you probably don't have to delete TextSerializer. If styleref is not null, you should add as dependency the style path. (assets.addDependency(text.getStyleref(), TextStyle.class)