def METHOD_NAME(self, **fields):
    """The 'name' and 'protocol' fields cannot be blank, and the protocol must
    be selected from the list of recognized protocols.  The URL must be valid."""
    name = fields.get("name")
    protocol = fields.get("protocol")
    if not name:
        return INCOMPLETE_CONFIGURATION
    if not protocol:
        return NO_PROTOCOL_FOR_NEW_SERVICE
    error = self.validate_protocol()
    if error:
        return error
    wrong_format = self.validate_formats()
    if wrong_format:
        return wrong_format