private CContentArea createContentArea( String uniqueId, boolean isDefaultContentArea ){ if( uniqueId == null ) throw new NullPointerException( "uniqueId must not be null" ); if( !isDefaultContentArea && uniqueId.equals( CONTENT_AREA_STATIONS_ID )){ throw new IllegalArgumentException( "the unique identifier '" + uniqueId + "' is reserved for the default CContentArea and may not be used by the client" ); } CContentArea center = new CContentArea( this, uniqueId ); if( isDefaultContentArea ){ register.setDefaultContentArea( center ); } addStationContainer( center ); return center; }
private CContentArea createContentArea( String uniqueId, boolean isDefaultContentArea ){ if( uniqueId == null ) throw new NullPointerException( "uniqueId must not be null" ); if( !isDefaultContentArea && uniqueId.equals( CONTENT_AREA_STATIONS_ID )){ throw new IllegalArgumentException( "the unique identifier '" + uniqueId + "' is reserved for the default CContentArea and may not be used by the client" ); } CContentArea center = new CContentArea( this, uniqueId ); if( isDefaultContentArea ){ register.setDefaultContentArea( center ); } addStationContainer( center ); return center; }