enabled attribute emulation support

Fixes bug 1063858
Implementation works as described in the second comment.

Change-Id: Ib0aa85f05244044c9f40fa9634b5ed3e8afa1f37
Merge "enabled attribute emulation support"