Calling getCDIProjects(true) twice in a row (after L258) doesn't seem like a good idea. You should store the result in a local variable thus avoiding unnecessary processing