src/org/tiefaces/components/websheet/configuration/EachCommand.java
@SuppressWarnings({ "rawtypes", "unchecked" })
	@Override
	public final int buildAt(String fullName,
			final ConfigBuildRef configBuildRef, final int atRow,
			final Map<String, Object> context,
			final List<RowsMapping> currentRowsMappingList) {

		fullName = fullName + ":" + this.getCommandName();
		Collection itemsCollection = ConfigurationUtility
				.transformToCollectionObject(configBuildRef.getEngine(),
						this.getItems(), context);

		String objClassName = this.getClassName();

		if (objClassName == null) {
			objClassName = configBuildRef.getCollectionObjNameMap()
					.get(this.getVar());
		}
		if (configBuildRef.isAddMode() && itemsCollection.isEmpty()) {
			// do something here to insert one empty object
			try {
				itemsCollection
						.add(Class.forName(objClassName).newInstance());
			} catch (Exception ex) {
				LOG.log(Level.SEVERE,
						"canot insert empty object in itemCollections error = "
								+ ex.getLocalizedMessage(),
						ex);
				return 0;
			}
		}

		int insertPosition = buildEachObjects(fullName, configBuildRef,
				atRow, context, currentRowsMappingList, itemsCollection,
				objClassName);

		return insertPosition - atRow;
	}
@SuppressWarnings({ "rawtypes", "unchecked" })
	@Override
	public final int buildAt(String fullName,
			final ConfigBuildRef configBuildRef, final int atRow,
			final Map<String, Object> context,
			final List<RowsMapping> currentRowsMappingList) {

		fullName = fullName + ":" + this.getCommandName();
		Collection itemsCollection = ConfigurationUtility
				.transformToCollectionObject(configBuildRef.getEngine(),
						this.getItems(), context);

		String objClassName = this.getClassName();

		if (objClassName == null) {
			objClassName = configBuildRef.getCollectionObjNameMap()
					.get(this.getVar());
		}
		if (configBuildRef.isAddMode() && itemsCollection.isEmpty()) {
			// do something here to insert one empty object
			try {
				itemsCollection
						.add(Class.forName(objClassName).newInstance());
			} catch (Exception ex) {
				LOG.log(Level.SEVERE,
						"canot insert empty object in itemCollections error = "
								+ ex.getLocalizedMessage(),
						ex);
				return 0;
			}
		}

		int insertPosition = buildEachObjects(fullName, configBuildRef,
				atRow, context, currentRowsMappingList, itemsCollection,
				objClassName);

		return insertPosition - atRow;
	}
/*
(non-Javadoc)

@see
org.tiefaces.components.websheet.configuration.Command#buildAt(java.lang.
String, org.tiefaces.components.websheet.configuration.ConfigBuildRef,
int, java.util.Map, java.util.List)