Using the currently assigned output layout manager, this method uses the current contents of the object and builds an output object as implemented by the layout manager. For example, if the object is a BasicPerson, and the current outputLayoutManager is the XmlLayout manager, it will ask the layout manager to build the BasicPerson XML Element from BasicPerson object. The layout manager will then retrieve the data from the BasicPerson object via object getter methods and build an Element from the data. While it's doing that, the object will be validated based on business rules found in the EnterpriseFields object (built from EnterpriseObjects.xml)
This method (along with buildInputFromObject and the Layout Manager infrastructure) allows us to generalize the serialization our message objects so we don't have to put all of that logic in the objects themselves. We just implement new Layout Managers and associate those layouts to the objects. All objects have an Xml Layout Manager associated to them that is derived from the EnterpriseObjects.xml document.
@return Object the data that will be built from the object. The calling applicatonswill cast this object to the appropriate thing. e.g. - Element, String etc.
@throws EnterpriseLayoutException.If an error occurs building the outputfrom the object.