This method return the list of mappings from the Model main method to be
called, assembles everything
@param myModel - the Model structure containing mappings
@return ArrayList<OBDAMappingAxiom> - list of mapping axioms read from the Model
765492
public ImmutableList<SQLPPTriplesMap> getMappings(Graph myModel) throws InvalidR2RMLMappingException {

		List<SQLPPTriplesMap> mappings = new ArrayList<SQLPPTriplesMap>();

		// retrieve the TriplesMap nodes
		Collection<TriplesMap> tripleMaps = r2rmlParser.getMappingNodes(myModel);

		for (TriplesMap tm : tripleMaps) {

			// for each node get a mapping
			SQLPPTriplesMap mapping;

			try {
				mapping = getMapping(tm);

                if(mapping!=null) {
                    // add it to the list of mappings
                    mappings.add(mapping);
                }

				// pass 2 - check for join conditions, add to list
				List<SQLPPTriplesMap> joinMappings = getJoinMappings(tripleMaps, tm);
				if (joinMappings != null) {
					mappings.addAll(joinMappings);
				}
			} catch (Exception e) {
				e.printStackTrace();
				throw new RuntimeException(e);
			}
		}
		return ImmutableList.copyOf(mappings);
	}
1061809
public static List<CommerceShippingMethod> toModels(
		CommerceShippingMethodSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceShippingMethod> models = new ArrayList<CommerceShippingMethod>(soapModels.length);

		for (CommerceShippingMethodSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
373974
public static List<CommerceRegion> toModels(CommerceRegionSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceRegion> models = new ArrayList<CommerceRegion>(soapModels.length);

		for (CommerceRegionSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
551569
public static List<CommerceSubscriptionEntry> toModels(
		CommerceSubscriptionEntrySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceSubscriptionEntry> models = new ArrayList<CommerceSubscriptionEntry>(soapModels.length);

		for (CommerceSubscriptionEntrySoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
408672
public static List<CommerceUserSegmentEntry> toModels(
		CommerceUserSegmentEntrySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceUserSegmentEntry> models = new ArrayList<CommerceUserSegmentEntry>(soapModels.length);

		for (CommerceUserSegmentEntrySoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
944812
public Map<String,String> getMappings(){
		
		HashMap<String, String> mappings      = new HashMap<String, String> ();
		HashMap<String, Boolean> destInstance = new HashMap<String, Boolean>();
		
		String s = "V";
		
		destInstance.put("null", true  );
		destInstance.put("v"   , false );
		
		HashMap<String, NullPointerControl> nullPointer = new HashMap<String, NullPointerControl>();
		
		nullPointer.put("Not", NOT_ANY     );
		nullPointer.put("All", ALL         );
		nullPointer.put("Des", DESTINATION );
		nullPointer.put("Sou", SOURCE      );
		
		HashMap<String, MappingType> mapping = new HashMap<String, MappingType>();		
		
		mapping.put("All"   , ALL_FIELDS         );
		mapping.put("Valued", ONLY_VALUED_FIELDS );
		mapping.put("Null"  , ONLY_NULL_FIELDS   );
		
		java.lang.reflect.Method[] methods = IMapper.class.getDeclaredMethods();
		
		for (Entry<String, Boolean> d : destInstance.entrySet()) 
			for (Entry<String, NullPointerControl> npc : nullPointer.entrySet()) 
				for (Entry<String, MappingType> mtd : mapping.entrySet()) 
					for (Entry<String, MappingType> mts : mapping.entrySet()) {
						String methodName = d.getKey()+s+npc.getKey()+mtd.getKey()+mts.getKey();
						for (java.lang.reflect.Method method : methods) 
							if(method.getName().equals(methodName))
								mappings.put(methodName, wrappedMapping(d.getValue(),npc.getValue(),mtd.getValue(),mts.getValue()));}
		
		mappings.put("get", "return null;"+newLine);
		return mappings;
	}
383751
public static List<CommerceCurrency> toModels(
		CommerceCurrencySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceCurrency> models = new ArrayList<CommerceCurrency>(soapModels.length);

		for (CommerceCurrencySoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
75507
static Map<String, List<Method>> getBusinessMethodsByName(BeanMetaData bmd) {
        Map<String, List<Method>> methodsByName = new HashMap<String, List<Method>>();
        collectBusinessMethodsByName(methodsByName, bmd.methodInfos);
        collectBusinessMethodsByName(methodsByName, bmd.localMethodInfos);
        return methodsByName;
    }
169851
@MapMethod
    public List<String> keys(Map<String,Object> m){
        List<String> l = Objects.newArrayList();
        for(String k:m.keySet()){
            l.add(k);
        }
        return l;
    }
1169361
public Set<Method> getMethodsWithAnyParamAnnotated(Class<? extends Annotation> annotation) {
        return getMethodsFromDescriptors(store.get(index(MethodParameterScanner.class), annotation.getName()), loaders());

    }
1069923
@Override
    public synchronized List<Map<String, Object>> listResourceModelConfigurations(){
        Map propertiesMap = projectConfig.getProperties();
        Properties properties = new Properties();
        properties.putAll(propertiesMap);
        return listResourceModelConfigurations(properties);
    }
1068951
protected Map<String, List<Object>> getCasPrincipalAttributes(final Map<String, Object> model, final RegisteredService registeredService) {
        return getPrincipalAttributesAsMultiValuedAttributes(model);
    }
938591
public List<MimeMappingType<WebFragmentDescriptor>> getAllMimeMapping()
   {
      List<MimeMappingType<WebFragmentDescriptor>> list = new ArrayList<MimeMappingType<WebFragmentDescriptor>>();
      List<Node> nodeList = model.get("mime-mapping");
      for(Node node: nodeList)
      {
         MimeMappingType<WebFragmentDescriptor>  type = new MimeMappingTypeImpl<WebFragmentDescriptor>(this, "mime-mapping", model, node);
         list.add(type);
      }
      return list;
   }
565471
public static List<CommerceOrderNote> toModels(
		CommerceOrderNoteSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceOrderNote> models = new ArrayList<CommerceOrderNote>(soapModels.length);

		for (CommerceOrderNoteSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
267584
public ServiceCall<TranslationModels> listModels(ListModelsOptions listModelsOptions) {
    String[] pathSegments = { "v3/models" };
    RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments));
    builder.query("version", versionDate);
    Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("language_translator", "v3", "listModels");
    for (Entry<String, String> header : sdkHeaders.entrySet()) {
      builder.header(header.getKey(), header.getValue());
    }
    builder.header("Accept", "application/json");
    if (listModelsOptions != null) {
      if (listModelsOptions.source() != null) {
        builder.query("source", listModelsOptions.source());
      }
      if (listModelsOptions.target() != null) {
        builder.query("target", listModelsOptions.target());
      }
      if (listModelsOptions.defaultModels() != null) {
        builder.query("default", String.valueOf(listModelsOptions.defaultModels()));
      }
    }
    return createServiceCall(builder.build(), ResponseConverterUtils.getObject(TranslationModels.class));
  }
485175
private static List<Method> getAnnotatedMethods(Class<?> clazz){
		List<Method> methods = new ArrayList<Method>();
		
		for(Method method:getAllMethods(clazz))
			if(!isNull(method.getAnnotation(JMapConversion.class)))
				methods.add(method);
		
		return methods;
	}
576542
public List<ModelServiceInstance> getUPModelInstances(String serviceName){
        ModelService service = getModelService(serviceName);

        List<ModelServiceInstance> list = null;
        if(service != null && service.getServiceInstances().size() > 0){

            for(ModelServiceInstance instance : new ArrayList<ModelServiceInstance>(service.getServiceInstances())){
                if(instance.getStatus().equals(OperationalStatus.UP)){
                    if(list == null){
                        list = new ArrayList<ModelServiceInstance>();
                    }
                    list.add(instance);
                }
            }

        }

        if(list == null){
            return Collections.emptyList();
        }else{
            return list;
        }
    }