@Override
    public <T> void update(Class<T> clazz, Long id, Map<String, String[]> valuesOfFields) {
        if (dao.getObject(clazz, id) == null){
            throw new RuntimeException("Object not found");
        }
        
        if (clazz == Faculty.class){
            addFaculty(valuesOfFields, id);
            return;
        }
        throw new RuntimeException("Incorrect class!");
    }