After doing some reading I decided that eventhough its convienient to have protected class memebers its bad practice because it violates encapsulation. Changed members of AbstractCommandHandler.java to private and used getters and setters in CartsCommandHandler.java