code: private static void handleFrameworkException(final FrameworkException fex, final String name) throws IOException {
  
  		switch (fex.getStatus()) {
  
  			case 401:
  			case 403:
  				throw new AccessDeniedException(name);
  
  			case 404:
  				throw new NoSuchFileException(name);
  
  			default:
  				throw new IllegalArgumentException(fex.getMessage());
  		}
  	}
docs: ----- private methods -----