@classmethod
def register_package(cls, package):
    """Register a Package."""
    try:
        cls.package_by_name(package.name)
        raise Exception('Package with name %s already exists' % package.name)
    except IndexError:
        cls.packages.append(package)
