Decouple the cli processing from the underlying java class implementation