@Override public EndpointProfileDto saveServerProfile(byte[] keyHash, int version, String serverProfile) { Validator.validateHash(keyHash, "Incorrect endpoint key hash."); return getDto(endpointProfileDao.updateServerProfile(keyHash, version, serverProfile)); }