Add Java code to handle two of the new commands.