public static Group getGroupByUnitClass ( Class < ? extends Unit > unitClass ) { readWriteLock . readLock ( ) . lock ( ) ; try { return searchGroupByUnitClass . get ( unitClass ) ; } finally { readWriteLock . readLock ( ) . unlock ( ) ; } }
return the cached group singleton of the given unit class .