question: public LayoutBlock createNewLayoutBlock ( String systemName , String userName ) { LayoutBlock block = null ; if ( userName == null || userName . equals ( "" ) ) { log . error ( "Attempt to create a LayoutBlock with no user name" ) ; return null ; } block = getByUserName ( userName ) ; if ( block != null ) { return null ; } String sName = "" ; if ( systemName == null ) { boolean found = true ; while ( found ) { sName = "ILB" + blkNum ; blkNum ++ ; block = getBySystemName ( sName ) ; if ( block == null ) { found = false ; } } } else { block = getBySystemName ( ( systemName . toUpperCase ( ) ) ) ; if ( block != null ) { return null ; } sName = systemName . toUpperCase ( ) ; } block = new LayoutBlock ( sName , userName ) ; register ( block ) ; return block ; }
target:  Method to create a new LayoutBlock if the LayoutBlock does not exist Returns null if a LayoutBlock with the same systemName or userName already exists, or if there is trouble creating a new LayoutBlock. Note that since the userName is used to address LayoutBlocks, the user name must be present. If the user name is not present, the new LayoutBlock is not created, and null is returned.