getAttributes, a simplifyied version of getObject