public Configuration removeConfiguration ( String name ) { Configuration conf = getConfiguration ( name ) ; if ( conf != null && ! conf . equals ( containerConfiguration ) ) { configList . remove ( conf ) ; namedConfigurations . remove ( name ) ; } else if ( conf != null && conf . equals ( containerConfiguration ) ) { throw new IllegalArgumentException ( "Can't remove container configuration" ) ; } return conf ; }
Removes the configuration with the specified name .