Helper :: validateResource() throws DomainException instead of Error for invalid protocol/type. Error should be reserved for runtime socket errors. Supplying incompatible protocol/type is a design-time error.