private void validateName(String name) {
        if ( name == null || name.isEmpty() || name.contains("@") || name.contains(":")) {
            throw new IllegalArgumentException("The name '" + name + "' is expected to be non-empty and not contain {:, @}");
        }
    }
Code common to ComponentId and ComponentSpecification

@author Tony Vaagenes
component/src/main/java/com/yahoo/component/Spec.java