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;
	}
public String getTagitLayoutPath() {
		String res = "content/none.xhtml";
	
		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:
		
		
		
		
			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")) {
				
					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")) {
				
					res = "content/route.xhtml";
				
					routeAction.begin();
					break;
				} else if(seRQLID.contains(Constants.NS_KIWI_CORE + "User")) {
				
				
				
				
				
						res = "content/person.xhtml";
						personAction.begin();
						break;
				
				} else if(seRQLID.contains(Constants.NS_DEMO+"LocatedMeeting")) {
					res = "content/location.xhtml";
					locationAction.begin();
					break;
				}
			}
		}
		log.info("set layout to #0",res);
		return res;
	}
public string gettagitlayoutpath() { string res = "content/none.xhtml"; 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: 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")) { 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")) { res = "content/route.xhtml"; routeaction.begin(); break; } else if(serqlid.contains(constants.ns_kiwi_core + "user")) { res = "content/person.xhtml"; personaction.begin(); break; } else if(serqlid.contains(constants.ns_demo+"locatedmeeting")) { res = "content/location.xhtml"; locationaction.begin(); break; } } } log.info("set layout to #0",res); return res; }