- final List<String> matches = AccountDAO.unbox(
- (profileUUID == null) ? dao.lookupByNameSync(String.valueOf(constraint))
- : dao.lookupInProfileByNameSync(profileUUID,
- String.valueOf(constraint)));
+ Logger.debug("acc", String.format("Looking for account '%s'", constraint));
+ final List<String> matches = AccountDAO.unbox((profileId == 0) ? dao.lookupByNameSync(
+ String.valueOf(constraint)
+ .toUpperCase()) : dao.lookupInProfileByNameSync(profileId,
+ String.valueOf(constraint)
+ .toUpperCase()));