code: private static void setField(final Object instance, final Field field, final Object value)
     {
        final boolean accessability = field.isAccessible();
  
        try
        {
           field.setAccessible(true);
           field.set(instance, value);
        }
        catch (Exception e)
        {
           InjectionException.rethrow(e);
        }
        finally
        {
           field.setAccessible(accessability);
        }
     }
docs: Sets field on object with specified value.
  
  @param instance to set field on
  @param field to set
  @param value to be set