code: public static String parseToolProfile(List<Properties> theTools, Properties info, JSONObject jsonObject)
  	{
  		try {
  			return parseToolProfileInternal(theTools, info, jsonObject);
  		} catch (Exception e) {
  			M_log.warning("Internal error parsing tool proxy\n"+jsonObject.toString());
  			e.printStackTrace();
  			return "Internal error parsing tool proxy:"+e.getLocalizedMessage();
  		}
  	}
docs: Parse a provider profile with lots of error checking...