How to execute AQL query(in string format) using Java client

Is there a way to execute AQL query using aerospike’s Java client? As part of automated database-migration, we need to execute AQL queries(for making changes to database) which will be read from .aql files and passed as strings.

The aql utility is an operations tool / data browser. It isn’t intended for writing applications.