Please explain the values 'flag' can have and what they do in a comment to getProperty().