}
private void checkName(Database db) {
List sameNameDbs = findByNamedQuery("findSameNameDatabase", new Object[] { db.getName(), db.getId() });
if (sameNameDbs != null && sameNameDbs.size() > 0)
throw new GenericServiceException("error.same.name.db.exists");
}