</BUG>
needsUpdate |= bclass.addBooleanField("parse", "Parse content", "yesno");
needsUpdate |= bclass.addStaticListField("cache", "Caching policy", "long|short|default|forbid");
<BUG>if (StringUtils.isBlank(doc.getAuthor())) {
needsUpdate = true;
doc.setAuthor("XWiki.Admin");
}</BUG>
if (StringUtils.isBlank(doc.getCreator())) {
needsUpdate = true;
<BUG>doc.setCreator("XWiki.Admin");
}</BUG>
if (StringUtils.isBlank(doc.getParent())) {

if (context.get("initdone") != null) {
return bclass;
}
bclass.setName(getExtensionClassName());
needsUpdate |= bclass.addTextField("name", "Name", 30);
needsUpdate |= bclass.addTextAreaField("code", "Code", 50, 20);
needsUpdate |=
bclass.addStaticListField(USE_FIELDNAME, "Use this extension", "onDemand=On demand|always=Always");
needsUpdate |= bclass.addBooleanField("parse", "Parse content", "yesno");
needsUpdate |= bclass.addStaticListField("cache", "Caching policy", "long|short|default|forbid");
if (StringUtils.isBlank(doc.getCreator())) {
