if (lenient) {
// lenient mode: Try to parse the css rule and if an error occurs,
// print a warning message and don't print the rule.
try {
new GssParser(new SourceCode(null, "body{" + cssProperty + "}")).parse();
} catch (GssParserException e) {
treeLogger.log(Type.WARN, "The following property is not valid and will be skipped: " +
cssProperty);
return false;
}