@Override public void importContainer(File path, Callback<TemplateContainer> callback) { try { // import if everything is fine callback.onSuccess(dao.importContainer(path)); } catch (Exception e) { callback.onFailure(e); } }
@Override public void exportContainer(TemplateContainer container, File path, Callback<Void> callback) { try { dao.exportContainer(container, path); callback.onSuccess(null); } catch (ATBException e) { callback.onFailure(e); } }