public void addCategory(DocumentCategory category) {
SqlFunction sqlFunction = new SqlFunction(getDataSource(),
"select category_id from category");
sqlFunction.compile();
int categoryId = sqlFunction.run()+1;
category.setId(categoryId);
getJdbcTemplate().update(
"insert into category (category_id,category_name) values(?,?)",
new Object[] {new Integer(category.getId()), category.getName()},