Fixed createNewCatalog() in api.java