// Create Enabled objects specially.
objectCreateRule = new EnabledObjectCreateRule(clazz,
AlwaysEnabled.class.isAssignableFrom(clazz));
} else {
// Create other objects as per normal.
objectCreateRule = new ObjectCreateRule(clazz);
}
addRule(pattern, objectCreateRule);
}