List<HashMap<String, String>> inodes = new ArrayList<HashMap<String, String>>();
String assetType ="";
dc.setSQL("Select asset_type from identifier where id =?");
dc.addParam(permissionId);
ArrayList assetResult = dc.loadResults();
if(assetResult.size()>0){
assetType = (String) ((Map)assetResult.get(0)).get("asset_type");
}
if(UtilMethods.isSet(assetType)){
dc.setSQL("select i.inode, type from inode i,"+assetType+" a where i.inode = a.inode and a.identifier = ?");