Not sure why you are excluding endsWith .class ?