Added logic for library item in a hub in node insert