* interrupted exception.
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public BoxFile execute(BoxFilesManagerImpl manager, BoxFileUploadRequestObject requestObject) throws BoxServerException, BoxRestException,
AuthFatalFailureException, InterruptedException {
UploadFileRequest request = new UploadFileRequest(mConfig, manager.getJSONParser(), requestObject);
try {
Object result = manager.getResponseAndParse(request, BoxResourceType.FILES, manager.getJSONParser());
BoxCollection collection = (BoxCollection) manager.tryCastObject(BoxResourceType.FILES, result);
Class cls = manager.getResourceHub().getClass(BoxResourceType.FILE);
return (BoxFile) Utils.getTypedObjects(collection, cls).get(0);