if(ds!=null)
throw new ApplicationException(
"datasource ["+storage+"] is not enabled to be used as session/client storage, " +
"you have to enable it in the railo administrator or define key \"storage=true\" for datasources defined in Application.cfc .");
CacheConnection cc = Util.getCacheConnection(pc.getConfig(),storage,null);
if(cc!=null)
throw new ApplicationException("cache ["+storage+"] is not enabled to be used as a session/client storage, you have to enable it in the railo administrator.");
throw new ApplicationException("there is no cache or datasource with name ["+storage+"] defined.");
}