private void processCommandLine ( final Sheet sheet , final Cell cell , final String line , final List < ConfigCommand > cList , final int sheetRightCol ) { int nameEndIndex = line . indexOf ( TieConstants . ATTR_PREFIX , TieConstants . COMMAND_PREFIX . length ( ) ) ; if ( nameEndIndex < 0 ) { String errMsg = "Failed to parse command line [" + line + "]. Expected '" + TieConstants . ATTR_PREFIX + "' symbol." ; LOG . severe ( errMsg ) ; throw new IllegalStateException ( errMsg ) ; } String commandName = line . substring ( TieConstants . COMMAND_PREFIX . length ( ) , nameEndIndex ) . trim ( ) ; Map < String , String > attrMap = buildAttrMap ( line , nameEndIndex ) ; ConfigCommand configCommand = createConfigCommand ( sheet , cell , sheetRightCol , commandName , attrMap ) ; if ( configCommand != null ) { cList . add ( configCommand ) ; } }
Process command line .