add a sample mechanism for attribute mapping