removed unnecessary  @SuppressWarnings(unchecked)
fix: resource leak
fix: collections raw types & unchecked casting