protected void updateResources(int resourceTypeId) {		
		if (getConfiguration().isGetResources()) {
			/* TODO we should consider moving the services into the appropriate extension instead
			 * of all in the agent module. It should now be possible to rewrite them as agent
			 * extensions
			 */
			
			// Applications
			if(resourceTypeId == -1 || resourceTypeId == ApplicationManager.APPLICATION_SHORTCUT_RESOURCE_TYPE_ID)
				applicationManager.getApplicationResources();
			
			// Tunnels			
			if(resourceTypeId == -1 || resourceTypeId == TunnelManager.TUNNEL_RESOURCE_TYPE_ID)
				tunnelManager.getTunnelResources();
			
			// Web forwards
			if(resourceTypeId == -1 || resourceTypeId == WebForwardManager.WEBFORWARD_RESOURCE_TYPE_ID)
				webForwardManager.getWebForwardResources();
			
			// Network places
			if(resourceTypeId == -1 || resourceTypeId == NetworkPlaceManager.NETWORK_PLACE_RESOURCE_TYPE_ID)
				networkPlaceManager.getNetworkPlaceResources();
		}
	}