now logic in commons to use  by sever