// Is there some sort of action running?
BackupStatusRepresentation.CurrentAction currentAction = BackupStatusRepresentation.CurrentAction.IDLE;
Date actionStarted = null;
Date actionEta = null;
BackupStatusRepresentation backupInfo = new BackupStatusRepresentation(
currentAction, actionStarted, actionEta );
String entity = JsonRenderers.DEFAULT.render( backupInfo );
return addHeaders(
Response.ok( entity, JsonRenderers.DEFAULT.getMediaType() ) ).build();