checkLock(getParamResource());
writeProperty(I_CmsConstants.C_PROPERTY_EXPORT, getParamExport());
writeProperty(I_CmsConstants.C_PROPERTY_EXPORTNAME, getParamExportname());
writeProperty(I_CmsConstants.C_PROPERTY_SECURE, getParamSecure());
CmsResource resource = getCms().readResource(filename);
<BUG>if ("true".equals(getParamIntern())) {
getCms().chflags(filename, resource.getFlags() | I_CmsConstants.C_RESOURCEFLAG_INTERNAL);
} else {
getCms().chflags(filename, resource.getFlags() & (~I_CmsConstants.C_RESOURCEFLAG_INTERNAL));</BUG>
}

checkLock(getParamResource());
writeProperty(I_CmsConstants.C_PROPERTY_EXPORT, getParamExport());
writeProperty(I_CmsConstants.C_PROPERTY_EXPORTNAME, getParamExportname());
writeProperty(I_CmsConstants.C_PROPERTY_SECURE, getParamSecure());
CmsResource resource = getCms().readResource(filename);
if (resource.isInternal() && !Boolean.valueOf(getParamIntern()).booleanValue()) {
getCms().chflags(filename, resource.getFlags() & (~I_CmsConstants.C_RESOURCEFLAG_INTERNAL));
} else if (!resource.isInternal() && Boolean.valueOf(getParamIntern()).booleanValue()) {
getCms().chflags(filename, resource.getFlags() | I_CmsConstants.C_RESOURCEFLAG_INTERNAL);
}
