* @throws IOException Signals that an I/O exception has occurred.
*/
@SuppressWarnings("unchecked")
public void updateShareLib(HttpServletRequest request, HttpServletResponse response) throws IOException {
JSONArray jsonArray = new JSONArray();
JobsConcurrencyService jc = Services.get().get(JobsConcurrencyService.class);
if (jc.isAllServerRequest(request.getParameterMap())) {
Map<String, String> servers = jc.getOtherServerUrls();
for (String otherUrl : servers.values()) {
// It's important that we specify ALL_SERVERS_PARAM=false, so that other oozie server should not call other oozie
//servers to update sharelib (and creating an infinite recursion)
String serverUrl = otherUrl + "/v2/admin/" + RestConstants.ADMIN_UPDATE_SHARELIB + "?"
+ RestConstants.ALL_SERVER_REQUEST + "=false";