urlExpression = context.deploy(context.getClientBundleType()
.getQualifiedSourceName().replace('.', '_')
+ "_jsonbundle.txt", "text/plain", data.toString().getBytes(),
true);
TypeOracle typeOracle = context.getGeneratorContext().getTypeOracle();
JClassType stringType = typeOracle.findType(String.class.getName());
assert stringType != null;
externalSVGUrlIdent = fields.define(stringType, "externalSVGUrl",
urlExpression, true, true);
JClassType textResourceType = typeOracle.findType(SVGResource.class
.getName());
assert textResourceType != null;
JType textResourceArrayType = typeOracle.getArrayType(textResourceType);
externalSVGCacheIdent = fields.define(textResourceArrayType,
"externalSVGCache", "new " + SVGResource.class.getName()
+ "[" + currentIndex + "]", true, true);
}