private static String getData(final ChangeTableEntry cte, final Object o) { if (o == null) { return null; } if (!cte.getIndex().getDbMultiValued()) { if (o instanceof BwString) { return ((BwString)o).getValue(); } else if (o instanceof BwLongString) { return ((BwLongString)o).getValue(); } else if (o instanceof BwLocation) { return ((BwLocation)o).getAddress().getValue(); } else if (o instanceof BwXproperty) { return ((BwXproperty)o).getValue(); } else { return String.valueOf(o); } } if (o instanceof BwString) { return ((BwString)o).getValue(); } else if (o instanceof BwLongString) { return ((BwLongString)o).getValue(); } else if (o instanceof BwLocation) { return ((BwLocation)o).getAddress().getValue(); } else if (o instanceof BwXproperty) { return ((BwXproperty)o).getValue(); } else { return String.valueOf(o); } }