public static void put(Map<String,Object> structure, String name, Object object)
    {
        if (name != null && object != null)
        {
            structure.put(name, object);
        }
    }
public static void put ( Map < String , Object > structure , String name , Object object ) { if ( name != null && object != null ) { structure . put ( name , object ) ; } }
Puts an object into a map

@param structure Map to put the object into
@param name Name of the object to add
@param object Object to add