Switched from IllegalArgumentException to InvalidAttributeException