@SuppressWarnings("rawtypes")
	private int buildEachObjects(String fullName,
			final ConfigBuildRef configBuildRef, final int atRow,
			final Map<String, Object> context,
			final List<RowsMapping> currentRowsMappingList,
			final Collection itemsCollection, final String objClassName) {

		int index = 0;
		int insertPosition = atRow;
		String thisObjClassName = objClassName;

		// loop through each object in the collection
		for (Object obj : itemsCollection) {
			// gather and cache object class name which used for add row
			if (thisObjClassName == null) {
				thisObjClassName = obj.getClass().getName();
				configBuildRef.getCollectionObjNameMap().put(this.var,
						thisObjClassName);
			}
			RowsMapping unitRowsMapping = new RowsMapping();
			context.put(var, obj);
			CommandUtility.insertEachTemplate(this.getConfigRange(),
					configBuildRef, index, insertPosition, unitRowsMapping);
			ConfigRange currentRange = ConfigurationUtility
					.buildCurrentRange(this.getConfigRange(),
							configBuildRef.getSheet(), insertPosition);
			currentRowsMappingList.add(unitRowsMapping);

			String unitFullName = fullName + "." + index;
			currentRange.getAttrs().setAllowAdd(false);
			if ((this.allowAdd != null)
					&& ("true".equalsIgnoreCase(this.allowAdd.trim()))) {
				currentRange.getAttrs().setAllowAdd(true);
				configBuildRef.setBodyAllowAdd(true);
			}
			configBuildRef.putShiftAttrs(unitFullName,
					currentRange.getAttrs(),
					new RowsMapping(unitRowsMapping));

			int length = currentRange.buildAt(unitFullName, configBuildRef,
					insertPosition, context, currentRowsMappingList);
			currentRange.getAttrs().setFinalLength(length);
			insertPosition += length;
			currentRowsMappingList.remove(unitRowsMapping);
			index++;
			context.remove(var);
		}
		return insertPosition;
	}
@ SuppressWarnings ( "rawtypes" ) private int buildEachObjects ( String fullName , final ConfigBuildRef configBuildRef , final int atRow , final Map < String , Object > context , final List < RowsMapping > currentRowsMappingList , final Collection itemsCollection , final String objClassName ) { int index = 0 ; int insertPosition = atRow ; String thisObjClassName = objClassName ; for ( Object obj : itemsCollection ) { if ( thisObjClassName == null ) { thisObjClassName = obj . getClass ( ) . getName ( ) ; configBuildRef . getCollectionObjNameMap ( ) . put ( this . var , thisObjClassName ) ; } RowsMapping unitRowsMapping = new RowsMapping ( ) ; context . put ( var , obj ) ; CommandUtility . insertEachTemplate ( this . getConfigRange ( ) , configBuildRef , index , insertPosition , unitRowsMapping ) ; ConfigRange currentRange = ConfigurationUtility . buildCurrentRange ( this . getConfigRange ( ) , configBuildRef . getSheet ( ) , insertPosition ) ; currentRowsMappingList . add ( unitRowsMapping ) ; String unitFullName = fullName + "." + index ; currentRange . getAttrs ( ) . setAllowAdd ( false ) ; if ( ( this . allowAdd != null ) && ( "true" . equalsIgnoreCase ( this . allowAdd . trim ( ) ) ) ) { currentRange . getAttrs ( ) . setAllowAdd ( true ) ; configBuildRef . setBodyAllowAdd ( true ) ; } configBuildRef . putShiftAttrs ( unitFullName , currentRange . getAttrs ( ) , new RowsMapping ( unitRowsMapping ) ) ; int length = currentRange . buildAt ( unitFullName , configBuildRef , insertPosition , context , currentRowsMappingList ) ; currentRange . getAttrs ( ) . setFinalLength ( length ) ; insertPosition += length ; currentRowsMappingList . remove ( unitRowsMapping ) ; index ++ ; context . remove ( var ) ; } return insertPosition ; }
Builds the each objects.

@param fullName
the full name
@param configBuildRef
the config build ref
@param atRow
the at row
@param context
the context
@param currentRowsMappingList
the current rows mapping list
@param itemsCollection
the items collection
@param objClassName
the obj class name
@return the int