}
public List<Map<String, Serializable>> DBSearch(Query query, User user,boolean respectFrontendRoles) throws ValidationException,DotDataException {
List<Field> fields = FieldsCache.getFieldsByStructureVariableName(query.getFromClause());
if(fields == null || fields.size() < 1){
throw new ValidationException("No Fields found for Content");
}
// return conFac.DBSearch(query, fields, fields.get(0).getStructureInode());
Map<String, String> dbColToObjectAttribute = new HashMap<String, String>();
for (Field field : fields) {
dbColToObjectAttribute.put(field.getFieldContentlet(), field.getVelocityVarName());