it's good, but has disadvantages.
I found a solution. I create MyRepositorySelector and put it to lib of JBoss. So, now LogManager will not be changed by another app.
But another question apeared.
I have app A and app B. They both use class C (in lib of JBoss). How the C knows what app calls him?