public synchronized static void clearWeakReferencesNow(){
  LAYOUTS.clear();
}

public synchronized static void clearWeakReferencesNow ( ) { LAYOUTS . clear ( ) ; }
this method clear any weak references right away instead of waiting for the gc . this might be advantageous if lots of layout are created and disposed of quickly to keep memory consumption down .
