docs: function(codec)
  	{
  		if (codec != null)
  		{
  			var name = codec.getName();
  			mxCodecRegistry.codecs[name] = codec;
  			
  			var classname = mxUtils.getFunctionName(codec.template.constructor);
  
  			if (classname != name)
  			{
  				mxCodecRegistry.addAlias(classname, name);
  			}
  		}
  
  		return codec;
  	}