* @return RemoteDependency corresponding to <code>json</code>
* @throws IllegalArgumentException
*/
public static RemoteDependencyDeclaration fromJson(JsonNode json)
throws IllegalArgumentException {
JsonNode rr_json = json.get(JSON_RESOLVABLE_REF);
// Get the RemoteDependency id
String id = json.get(JSON_ID).asText();
// Get the RemoteDependency is multiple boolean
Boolean multiple = json.get(JSON_IS_MULTIPLE).getBooleanValue();
// Create the ComponentReference from its name
ComponentReference<?> compref = new ComponentReference(json.get(
JSON_COMP_REF_NAME).asText());
// Get the ResolvableReference type
RRTYPE rr_type = RRTYPE.valueOf(rr_json.get(JSON_RESOLVABLE_REF_TYPE)
.asText());
// Get the ResolvableReference name
String rr_name = rr_json.get(JSON_RESOLVABLE_REF_NAME).asText();
String providerURL = json.get(JSON_PROVIDER_URL).asText();
ResolvableReference rr = null;
// Create the ResolvableReference according to its type.