The atg.commerce.csr.returns.ReturnTools.createReturnItemInstance(CommerceItem) method creates a ReturnItem instance based on the returnItemTypeClassMap property value. If a commerce item type is configured with a ReturnItem class, a ReturnItem instance is created. This method calls the ReturnItem(CommerceItem) constructor and sets the commerce item property.

The default configuration for the returnItemTypeClassMap property is:


When ReturnTools creates a ReturnItem, it will use the type value and create an object of the class you identify.

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices