Added handling of layout metadata rule.
Authored by: SeanZ 2012-01-28
Parent: [r6020]
Child: [r6022]