code: public Binary getBinaryById(int id) {
          for (Binary binary : binaryList) {
              if (binary.getId() == id) {
                  return binary;
              }
          }
  
          return null;
      }
docs: Retrieves a binary item based on its id.
  
  @param id the id which should be searched
  @return the binary item if found, null otherwise