public boolean isClientPermitted(WGDatabase db, HttpServletRequest request) {
if (db.getAttribute(DBATTRIB_CLIENTRESTRICTIONS) != null) {
IPv4Address ip;
try {
ip = new IPv4Address(request.getRemoteAddr());
if (!ip.validate()) {
log.info("Client ip '" + request.getRemoteAddr() + "' from last request is invalid. Client is not permitted to access db '" + db.getDbReference() + "'.");
return false;
}
}
catch (Exception e) {