content = createPagefile(C_CLASSNAME, templatefile, C_CONTENTBODYPATH
+ currentFilelist.substring(1, currentFilelist.length()) + newFile);
checkFolders(cms, currentFilelist);
CmsFile file = cms.createFile(currentFilelist, newFile, content, "page");
cms.lockResource(file.getAbsolutePath());
<BUG>cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_TITLE, title);
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_KEYWORDS, keywords);
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_DESCRIPTION, description);
contentFile = cms.createFile(C_CONTENTBODYPATH + currentFilelist.substring(1,</BUG>
currentFilelist.length()), newFile, C_DEFAULTBODY.getBytes(), "plain");

content = createPagefile(C_CLASSNAME, templatefile, C_CONTENTBODYPATH
+ currentFilelist.substring(1, currentFilelist.length()) + newFile);
checkFolders(cms, currentFilelist);
CmsFile file = cms.createFile(currentFilelist, newFile, content, "page");
cms.lockResource(file.getAbsolutePath());
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_TITLE, title);
if( keywords != null && !keywords.equals("") ) {
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_KEYWORDS, keywords);
}
if( description != null && !description.equals("") ) {
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_DESCRIPTION, description);
}
contentFile = cms.createFile(C_CONTENTBODYPATH + currentFilelist.substring(1,
currentFilelist.length()), newFile, C_DEFAULTBODY.getBytes(), "plain");
