//there must be a ranking because everything that is displayable on tagit
//is a PointOfInetrest but maybe also another type (like a route)
//until then we break, when contentItem has topType (like route)
//init with none
public String getTagitLayoutPath() {
		String res = "content/none.xhtml";
		//if explorer is in createMode
		switch( explorerAction.getMode() ) {
		case CREATE_LOCATION:
			res = "content_new/location_new.xhtml";
			if( newLocationAction.getMode() == -1 ) {
				newLocationAction.begin();
			}
			break;
		case CREATE_ROUTE:
			res = "content_new/route_new.xhtml";
			if( newRouteAction.getMode() != 2 ) {
				newRouteAction.setMode(2);
			}
			break;
		default:
			//there must be a ranking because everything that is displayable on tagit
			//is a PointOfInetrest but maybe also another type (like a route)
			//until then we break, when contentItem has topType (like route)
			//init with none
			for( KiWiResource type : currentContentItem.getTypes() ) {
				String seRQLID = type.getSeRQLID();
				if(seRQLID.contains(Constants.NS_FCP_CORE+"Location")) {
					res = "content/location.xhtml";
					locationAction.begin();
					break;
				} else if(seRQLID.contains(Constants.NS_KIWI_CORE+"BlogPost")) {
					//TODO should be a specific Blog interface
					res = "content/blog.xhtml";
					newsItemAction.begin();
					break;
				} else if(seRQLID.contains(Constants.NS_FCP_CORE+"NewsItem")) {
					res = "content/newsItem.xhtml";
					newsItemAction.begin();
					break;
				} else if(seRQLID.contains(Constants.NS_TAGIT + "Route")) {
					//TODO CHANGE!!!
					res = "content/route.xhtml";
					//res = "content/photoroute.xhtml";
					routeAction.begin();
					break;
				} else if(seRQLID.contains(Constants.NS_KIWI_CORE + "User")) {
					//if( currentUser.getContentItem().getId() == currentContentItem.getId() ) {
					//	res = "content/user.xhtml";
					//	personAction.begin();
					//	break;
					//} else {
						res = "content/person.xhtml";
						personAction.begin();
						break;
					//}
				} else if(seRQLID.contains(Constants.NS_DEMO+"LocatedMeeting")) {
					res = "content/location.xhtml";
					locationAction.begin();
					break;
				}
			}
//TODO some common type for all pois
		}
		log.info("set layout to #0",res);
		return res;
	}
break;
default:
//there must be a ranking because everything that is displayable on tagit
//is a PointOfInetrest but maybe also another type (like a route)
//until then we break, when contentItem has topType (like route)
//init with none
for( KiWiResource type : currentContentItem.getTypes() ) {
String seRQLID = type.getSeRQLID();
newLocationAction.begin();
}
break;
case CREATE_ROUTE:
res = "content_new/route_new.xhtml";
if( newRouteAction.getMode() != 2 ) {
newRouteAction.setMode(2);
}
break;
default:
//there must be a ranking because everything that is displayable on tagit
//is a PointOfInetrest but maybe also another type (like a route)
//until then we break, when contentItem has topType (like route)
//init with none
for( KiWiResource type : currentContentItem.getTypes() ) {
String seRQLID = type.getSeRQLID();
if(seRQLID.contains(Constants.NS_FCP_CORE+"Location")) {
res = "content/location.xhtml";
locationAction.begin();
break;
} else if(seRQLID.contains(Constants.NS_KIWI_CORE+"BlogPost")) {
//TODO should be a specific Blog interface
res = "content/blog.xhtml";
newsItemAction.begin();
public String getTagitLayoutPath() {
String res = "content/none.xhtml";
//if explorer is in createMode
switch( explorerAction.getMode() ) {
case CREATE_LOCATION:
res = "content_new/location_new.xhtml";
if( newLocationAction.getMode() == -1 ) {
newLocationAction.begin();
}
break;
case CREATE_ROUTE:
res = "content_new/route_new.xhtml";
if( newRouteAction.getMode() != 2 ) {
newRouteAction.setMode(2);
}
break;
default:
//there must be a ranking because everything that is displayable on tagit
//is a PointOfInetrest but maybe also another type (like a route)
//until then we break, when contentItem has topType (like route)
//init with none
for( KiWiResource type : currentContentItem.getTypes() ) {
String seRQLID = type.getSeRQLID();
if(seRQLID.contains(Constants.NS_FCP_CORE+"Location")) {
res = "content/location.xhtml";
locationAction.begin();
break;
} else if(seRQLID.contains(Constants.NS_KIWI_CORE+"BlogPost")) {
//TODO should be a specific Blog interface
res = "content/blog.xhtml";
newsItemAction.begin();
break;
} else if(seRQLID.contains(Constants.NS_FCP_CORE+"NewsItem")) {
res = "content/newsItem.xhtml";
newsItemAction.begin();
break;
} else if(seRQLID.contains(Constants.NS_TAGIT + "Route")) {
//TODO CHANGE!!!
res = "content/route.xhtml";
//res = "content/photoroute.xhtml";
routeAction.begin();