class ReflectionHelper {

	public static Object getMappedValue(Object value, Object key) {
		if ( value == null || !( value instanceof Map ) ) {
			return null;
		}

		Map<?, ?> map = ( Map<?, ?> ) value;
		//noinspection SuspiciousMethodCalls
		return map.get( key );
	}

	private  ReflectionHelper();

}