IObject created = gateway.createObject(obj, (new PojoOptions()).map()); if (parent != null) ModelMapper.linkParentToChild(created, parent.asIObject());
Map options = (new PojoOptions()).map(); IObject created = gateway.createObject(obj, options); if (parent != null) { ModelMapper.linkParentToNewChild(created, parent.asIObject()); }
    public DataObject createDataObject(DataObject child, DataObject parent)            throws DSOutOfServiceException, DSAccessException    {        if (child == null)             throw new IllegalArgumentException("The child cannot be null.");        IObject obj = ModelMapper.createIObject(child, parent);        if (obj == null)             throw new NullPointerException("Cannot convert object.");        IObject created = gateway.createObject(obj, (new PojoOptions()).map());        if (parent != null)            ModelMapper.linkParentToChild(created, parent.asIObject());        return  PojoMapper.asDataObject(created);    }