public PolicyProposalResult evaluateDeepSearch_innerMethod(
			TransferredFile policyFileToTransfer,
			TransferredFile dbSQLDumpFileToTransfer, Context initialContext,
			long gid2, float maxRisk) {

		logger.writeLog(Level.ALL,"Method evaluateDeepSearch_innerMethod, gid:"+gid+", thread number:"+Thread.currentThread().getId());
		logger.writeLog(Level.ALL,("DBA_utils-Instance #"+this.toString()));

		
		this.gid = gid2;

		DataHandler dbDumpFileDataHandler;
		try {
			dbDumpFileDataHandler = convertZipFile(dbSQLDumpFileToTransfer, dbSQLDumpFileToTransfer.getFileName());
		} catch (ZipException e2) {
			e2.printStackTrace();
//			return "-1, Error: The given file is not a Zip file";
			return null;
		} catch (FileNotFoundException e2) {
			e2.printStackTrace();
//			return "-2, Error: Impossible to find the specified file";
			return null;
		} catch (IOException e2) {
			e2.printStackTrace();
//			return "-3, I/O Error";
			return null;
		}

		Context initContext = null;

		/*
		 * if initialContext == null
		 * we expect the execution to be hosted in
		 * an application server
		 */
		if (initialContext == null) {
			try {
				initContext = new InitialContext();
			} catch (NamingException e1) {
				e1.printStackTrace();
			} 
		} else {
			// we are not in an application server context!
			initContext = initialContext;
		}

		if (initContext == null) {
//			return "-4, Error: Null context";
			return null;
		}		
		
			MySQLQueryFactory mySQLFactory = null;
			try {
				mySQLFactory = setupAndApplyDBDump(initContext, dbDumpFileDataHandler.getInputStream());
			} catch (IOException e) {
				e.printStackTrace();
//				return "-5, Problem with input DB dump";
				return null;
			}
		
		if (mySQLFactory == null) {
//			return "-5, Problem with input DB dump";
			return null;
		}
		
		
		PolicyProposalResult result = deepSearchEvaluator(policyFileToTransfer, "", "", true, gid, maxRisk);

		// results are automatically saved by DeepSearch class
		
		return result;
	}