public Configuration customize ( Configuration defaultConfiguration , Configuration namedConfiguration ) { // Set custom configuration ConfigurationBuilder builder = new ConfigurationBuilder ( ) ; // Named configuration have priority if ( namedConfiguration != null ) { read ( builder , namedConfiguration ) ; } else { // Add default configuration if ( defaultConfiguration != null ) { read ( builder , defaultConfiguration ) ; } customizeEviction ( builder ) ; } return builder . build ( ) ; }
Customize provided configuration based on XWiki cache configuration .