/**
* Returns the category metadata
*
* @return Registry A Registry object containing the metadata
*
* @since 1.6
*/
public function getMetadata()
{
if (!$this->metadata instanceof Registry) {
$this->metadata = new Registry($this->metadata);
}
return $this->metadata;
}