for (int i = 0; i < nProperties; i++) {
String propName = decl.item(i);
if (propName != null) {
String propN = propName.trim().toLowerCase();
if (propN.length() != 0) {
PropCMProperty prop = PropCMProperty.getInstanceOf(propN);
String priority = decl.getPropertyPriority(propName);
boolean important = priority != null && priority.length() > 0;
if (prop != null && prop.isShorthand()) {
// expand shorthand property
CSSQueryContext context = new CSSQueryContext();
expandToLeaf(prop, decl.getPropertyValue(propName), context);
Enumeration properties = context.properties();