HTTPBackupAgent.Constants.OperationType.RESTORE +
"/" + repositoryName +
"/" + backupId;
WorkspaceEntry wEntry = null;
try {
wEntry = getWorkspaceEntry(config, repositoryName, workspaceName);
} catch (Throwable e) {
throw new BackupExecuteException("Can not get WorkspaceEntry for workspace '" + workspaceName + "' from config.", e);
}
JsonGeneratorImpl generatorImpl = new JsonGeneratorImpl();
JsonValue json;
try {
json = generatorImpl.createJsonObject(wEntry);
} catch (JsonException e) {
throw new BackupExecuteException("Can not get json from : " + wEntry.getClass().toString(), e);
}
BackupAgentResponse response = transport.executePOST(sURL, json.toString());
if (response.getStatus() == Response.Status.OK.getStatusCode()) {