[BZ-1077116] throw an UnsupportedOperationException when trying to create a new Command in legacy API