Changed regular expression to be able to use namespace in a reference model name