if(type == null) { throw new MissingAttributeException(“type”); } if(!“lower”.equalsIgnoreCase(type) && !“upper”.equalsIgnoreCase(type)) { throw new Exception(“type must be ‘lower’ or ‘upper’”);
}