function unwrapBusinessObjects(properties) {

  var unwrappedProps = assign({}, properties);

  referencePropertyNames.forEach(function(name) {
    if (name in properties) {
      unwrappedProps[name] = getBusinessObject(unwrappedProps[name]);
    }
  });

  return unwrappedProps;
}
/**
 * Make sure we unwrap the actual business object
 * behind diagram element that may have been
 * passed as arguments.
 *
 * @param  {Object} properties
 *
 * @return {Object} unwrappedProps
 */
Make sure we unwrap the actual business object
behind diagram element that may have been
passed as arguments.

@param  {Object} properties

@return {Object} unwrappedProps
Make sure we unwrap the actual business object behind diagram element that may have been passed as arguments . @param { Object } properties @return { Object } unwrappedProps
function unwrapBusinessObjects(properties) {
  var unwrappedProps = assign({}, properties);
  referencePropertyNames.forEach(function(name) {
    if (name in properties) {
      unwrappedProps[name] = getBusinessObject(unwrappedProps[name]);
    }
  });
  return unwrappedProps;
}
function unwrapBusinessObjects ( properties ) { var unwrappedProps = assign ( { } , properties ) ; referencePropertyNames . forEach ( function ( name ) { if ( name in properties ) { unwrappedProps [ name ] = getBusinessObject ( unwrappedProps [ name ] ) ; } } ) ; return unwrappedProps ; }
Make sure we unwrap the actual business object
 behind diagram element that may have been
 passed as arguments.
Make sure we unwrap the actual business object behind diagram element that may have been passed as arguments .