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 ) ; }
Creates a new context with the given property mappings .