class AcmObjectLockServiceImpl implements AcmObjectLockService, ApplicationEventPublisherAware {

    @Override
    public String getDocumentsWithoutLock(String objectType, Authentication auth, int firstRow, int maxRows, String sort, String fqParams)
            throws MuleException
    {
        StringBuilder query = new StringBuilder();
        query.append("-({!join from=parent_ref_s to=id}object_type_s:OBJECT_LOCK)");
        query.append(" AND ");
        query.append("object_type_s").append(":").append(objectType);
        log.debug("executing query for documents without lock: {}", query.toString());

        return executeQuery(query.toString(), auth, firstRow, maxRows, sort, fqParams);
    }

}