code: public static Context createContext(Collection<PropertyMapping<?>> mappings)
      {
          IdentityHashMap<ContextProperty<?>, Object> properties = new IdentityHashMap<ContextProperty<?>, Object>(mappings.size());
          for (final PropertyMapping<?> mapping : mappings)
          {
              properties.put(mapping.property, mapping.value);
          }
          return ImmutableContext.createUnsafe(properties);
      }
docs: Creates a new context with the given property mappings.
  
  @param mappings The property mappings for the context
  
  @return the context