Caster.toBooleanValue(data.get(STORAGE,null),false),
Caster.toBooleanValue(data.get(READ_ONLY,null),false));
// then for {type:... , host:... , ...}
String type=Caster.toString(data.get(KeyConstants._type));
DataSourceDefintion dbt = DBUtil.getDataSourceDefintionForType(type, null);
if(dbt==null) throw new ApplicationException("no datasource type ["+type+"] found");
DataSourceImpl ds = new DataSourceImpl(
name,
dbt.className,
Caster.toString(data.get(KeyConstants._host)),