/**
  * @param SchemaFactoryInterface $factory
  * @param ContainerInterface     $container
  * @param string                 $classType
  * @param Closure                $identityClosure function($resource) : string
  */
 public function __construct(SchemaFactoryInterface $factory, ContainerInterface $container, $classType, Closure $identityClosure)
 {
     $schemaForRealType = $container->getSchemaByType($classType);
     $this->resourceType = $schemaForRealType->getResourceType();
     $this->selfSubUrl = $schemaForRealType->getSelfSubUrl();
     parent::__construct($factory, $container);
     $this->identityClosure = $identityClosure;
 }
 /**
  * @inheritdoc
  */
 public function getSchemaByType($resourceType)
 {
     return $this->getSchemaAdapter($this->container->getSchemaByType($resourceType));
 }