Made hostname in Resource mandatory.