Update RegisterCommand.java