Moved the schema-locating code outside the AbstractCommand