citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java
private void addViewGenericRoleMemberToStep(final String stepName, final Step step, final List<T> assignments,
			final StepMapping<T> stepMapping) {

		for (final T assignmentData : assignments) {

			String subStepName = "";

			if (stepMapping.getRoleCode(assignmentData) != null) {
				subStepName = new StringBuilder().append(stepMapping.getFirstName(assignmentData))
						.append(CONTENT_SEPARATOR).append(stepMapping.getLastName(assignmentData))
						.append(PARTY_START_TAG).append(stepMapping.getParty(assignmentData)).append(PARTY_END_TAG)
						.toString();
			}

			final SubStep sameRoleSubStep = new SubStep(stepName + '.' + subStepName,CaptionMode.HTML);
			sameRoleSubStep.setDescription(stepName + '.' + subStepName);			
			sameRoleSubStep.setBackgroundColor(stepMapping.getBackgroundColor(assignmentData));

			sameRoleSubStep.setStartDate(stepMapping.getFromDate(assignmentData).getTime());
			sameRoleSubStep.setEndDate(stripDatesAfterCurrentDate(stepMapping.getToDate(assignmentData)).getTime());

			step.addSubStep(sameRoleSubStep);
		}
	}
private void addViewGenericRoleMemberToStep(final String stepName, final Step step, final List<T> assignments,
			final StepMapping<T> stepMapping) {

		for (final T assignmentData : assignments) {

			String subStepName = "";

			if (stepMapping.getRoleCode(assignmentData) != null) {
				subStepName = new StringBuilder().append(stepMapping.getFirstName(assignmentData))
						.append(CONTENT_SEPARATOR).append(stepMapping.getLastName(assignmentData))
						.append(PARTY_START_TAG).append(stepMapping.getParty(assignmentData)).append(PARTY_END_TAG)
						.toString();
			}

			final SubStep sameRoleSubStep = new SubStep(stepName + '.' + subStepName,CaptionMode.HTML);
			sameRoleSubStep.setDescription(stepName + '.' + subStepName);			
			sameRoleSubStep.setBackgroundColor(stepMapping.getBackgroundColor(assignmentData));

			sameRoleSubStep.setStartDate(stepMapping.getFromDate(assignmentData).getTime());
			sameRoleSubStep.setEndDate(stripDatesAfterCurrentDate(stepMapping.getToDate(assignmentData)).getTime());

			step.addSubStep(sameRoleSubStep);
		}
	}
Adds the view generic role member to step.

@param stepName
the step name
@param step
the step
@param assignments
the assignments
@param stepMapping
the step mapping