Check for nullity of useincluderegex should be done here, no need to pass it to the method.