if (relation != null)
{
StringBuffer sb = new StringBuffer(relation.getTargetTask().getID().toString());
Duration duration = relation.getLag();
RelationType type = relation.getType();
double durationValue = duration.getDuration();
if ((durationValue != 0) || (type != RelationType.FINISH_START))
{
String[] typeNames = LocaleData.getStringArray(m_locale, LocaleData.RELATION_TYPES);
sb.append(typeNames[type.getValue()]);
}
if (durationValue != 0)
{
if (durationValue > 0)