code: function create (id, spec) {
    validateModifiers(id, spec, modifierKeys.concat('compose'))
  
    const outputType = getTypeCheckSourceWithDefault(
      'collection',
      'array',
      spec.outputType
    )
  
    const entity = {}
    entity.spec = spec
    entity.outputType = outputType
  
    const compose = parseCompose.parse(id, modifierKeys, spec)
  
    if (compose.length) {
      entity.compose = createCompose(compose)
    }
    return entity
  }
docs: Creates new Entity Object
  @param {Object} spec - spec
  @param {string} id - Entity id
  @return {Object} Entity Object