public function __construct($name = '', $type = '', $factory = '', array $params = array(), array $directories = array())
{
// initialize the UUID
$this->setUuid($this->newUuid());
// set the data
$this->name = $name;
$this->type = $type;
$this->factory = $factory;
$this->params = $params;
$this->directories = $directories;
}