private Map < String , String > buildAttrMap ( final String commandLine , final int nameEndIndex ) { int paramsEndIndex = commandLine . lastIndexOf ( TieConstants . ATTR_SUFFIX ) ; if ( paramsEndIndex < 0 ) { String errMsg = "Failed to parse command line [" + commandLine + "]. Expected '" + TieConstants . ATTR_SUFFIX + "' symbol." ; throw new IllegalArgumentException ( errMsg ) ; } String attrString = commandLine . substring ( nameEndIndex + 1 , paramsEndIndex ) . trim ( ) ; return ParserUtility . parseCommandAttributes ( attrString ) ; }
Build the attributes map .