if(!className.endsWith("Repository") && !className.endsWith("RepositoryRepository")) {

:P ???