src/org/tiefaces/components/websheet/utility/ConfigurationUtility.java
public static String getFullDataCollectNameFromFullName(
			final String fullName) {
		if (fullName == null) {
			return "";
		}

		int lastEachCommandPos = fullName
				.lastIndexOf(TieConstants.EACH_COMMAND_FULL_NAME_PREFIX);
		if (lastEachCommandPos < 0) {
			return "";
		}
		int lastEachCommandIndexPos = fullName.indexOf('.',
				lastEachCommandPos
						+ TieConstants.EACH_COMMAND_FULL_NAME_PREFIX
								.length());
		if (lastEachCommandIndexPos < 0) {
			return fullName;
		}
		return fullName.substring(0, lastEachCommandIndexPos);
	}
public static String getFullDataCollectNameFromFullName(
			final String fullName) {
		if (fullName == null) {
			return "";
		}

		int lastEachCommandPos = fullName
				.lastIndexOf(TieConstants.EACH_COMMAND_FULL_NAME_PREFIX);
		if (lastEachCommandPos < 0) {
			return "";
		}
		int lastEachCommandIndexPos = fullName.indexOf('.',
				lastEachCommandPos
						+ TieConstants.EACH_COMMAND_FULL_NAME_PREFIX
								.length());
		if (lastEachCommandIndexPos < 0) {
			return fullName;
		}
		return fullName.substring(0, lastEachCommandIndexPos);
	}
public static String getFullDataCollectNameFromFullName ( final String fullName ) { if ( fullName == null ) { return "" ; } int lastEachCommandPos = fullName . lastIndexOf ( TieConstants . EACH_COMMAND_FULL_NAME_PREFIX ) ; if ( lastEachCommandPos < 0 ) { return "" ; } int lastEachCommandIndexPos = fullName . indexOf ( ' ' , lastEachCommandPos + TieConstants . EACH_COMMAND_FULL_NAME_PREFIX . length ( ) ) ; if ( lastEachCommandIndexPos < 0 ) { return fullName ; } return fullName . substring ( 0 , lastEachCommandIndexPos ) ; }
Remove last each command index from full name. e.g. for
F.departments:E.department.1:E.employee.2 will return
F.departments:E.department.1:E.employee

Reason for this is for last layer collection. e.g. E.employee.1 and
E.employee.2 The E.emloyee is the same. *

@param fullName
the full name
@return the full data collect name from full name
Remove last each command index from full name . e . g . for F . departments : E . department . 1 : E . employee . 2 will return F . departments : E . department . 1 : E . employee