Usage of spring rest template and commons cli