return (BoxFolder) restoreTrashItem(id, BoxResourceType.FOLDER, requestObject);
}
private BoxItem getTrashItem(final String itemId, final BoxResourceType type, final BoxDefaultRequestObject requestObject) throws BoxRestException,
AuthFatalFailureException, BoxServerException {
GetTrashItemRequest request = new GetTrashItemRequest(getConfig(), getJSONParser(), itemId, type, requestObject);
Object result = getResponseAndParse(request, type, getJSONParser());
return (BoxItem) tryCastBoxItem(type, result);
}