* @param obj Object to be converted
* @param namespace the current namespace
*/
public static String asString(Object obj, MappingNamespace namespace) {
if (obj instanceof CayenneMapEntry) {
CayenneMapEntry mapObject = (CayenneMapEntry) obj;
String label = mapObject.getName();
if (mapObject instanceof Entity) {
Entity entity = (Entity) mapObject;
// for different namespace display its name