refactor code to use new AFUtility.createPropertiesObject() method