int iPos = idKey_RedirectUri.indexOf('#');
String idKey = idKey_RedirectUri.substring(0, iPos);
String redirectUri = idKey_RedirectUri.substring(iPos + 1);
if(idKey == null) return "invalid";
IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
IWidgetInstance widgetInstance = persistenceManager.findWidgetInstanceByIdKey(idKey);
if(widgetInstance==null) return "invalid";
Collection<IContent> startFiles = widgetInstance.getWidget().getContentList();
String startFileUrl = null;
for(IContent startFile : startFiles) {