public function parse( Configuration $configuration, Service $mainService ) {

		if( !$configuration->has('volumes') )
			return;

		$volumesDefinition = $configuration->get( 'volumes' );
		foreach( $volumesDefinition as $key => $data ) {

			$type = 'object';
			if( is_string($data) )
				$type = 'string';

			$volumeParser = $this->volumeParserFactory->getParser( $type );
			$volume = $volumeParser->parse($key, $data);
			$mainService->addVolume($volume);

			$this->applyToSidekicks($mainService, $volume);
		}

	}