/**
  * @param mixed $subject
  * @param Config $config
  * @return \JSONSchema\Structure\Schema
  */
 public function parse($subject, Config $config = null)
 {
     $schemaObject = new Schema();
     $schemaObject->setConfig($config === null ? new Config() : $config);
     return $this->doParse($subject, $schemaObject);
 }