microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableServiceEntity.java
public static void readEntityWithReflection(final Object instance,
            final HashMap<String, EntityProperty> properties, final OperationContext opContext)
            throws IllegalArgumentException, IllegalAccessException, InvocationTargetException {
        final HashMap<String, PropertyPair> props = PropertyPair.generatePropertyPairs(instance.getClass());

        for (final Entry<String, EntityProperty> p : properties.entrySet()) {
            if (props.containsKey(p.getKey())) {
                props.get(p.getKey()).consumeEntityProperty(p.getValue(), instance);
            }
        }
    }
public static void readEntityWithReflection(final Object instance,
            final HashMap<String, EntityProperty> properties, final OperationContext opContext)
            throws IllegalArgumentException, IllegalAccessException, InvocationTargetException {
        final HashMap<String, PropertyPair> props = PropertyPair.generatePropertyPairs(instance.getClass());

        for (final Entry<String, EntityProperty> p : properties.entrySet()) {
            if (props.containsKey(p.getKey())) {
                props.get(p.getKey()).consumeEntityProperty(p.getValue(), instance);
            }
        }
    }
public static void readEntityWithReflection ( final Object instance , final HashMap < String , EntityProperty > properties , final OperationContext opContext ) throws IllegalArgumentException , IllegalAccessException , InvocationTargetException { final HashMap < String , PropertyPair > props = PropertyPair . generatePropertyPairs ( instance . getClass ( ) ) ; for ( final Entry < String , EntityProperty > p : properties . entrySet ( ) ) { if ( props . containsKey ( p . getKey ( ) ) ) { props . get ( p . getKey ( ) ) . consumeEntityProperty ( p . getValue ( ) , instance ) ; } } }
Deserializes the table entity property map into the specified object instance using reflection.
<p>
This static method takes an object instance that represents a table entity type and uses reflection on its class
type to find methods to deserialize the data from the property map into the instance.
<p>
Each property name and data type in the properties map is compared with the methods in the class type for a pair
of getter and setter methods to use for serialization and deserialization. The class is scanned for methods with
names that match the property name with "get" and "set" prepended, or with the {@link StoreAs} annotation set
with the property name. The methods must have return types or parameter data types that match the data type of
the corresponding {@link EntityProperty} value. If such a pair is found, the data is copied into the instance
object by invoking the setter method on the instance. Properties that do not match a method pair by name and data
type are not copied.

@param instance
An <code>Object</code> reference to an instance of a class implementing {@link TableEntity} to
deserialize the table entity
data into.
@param properties
A <code>java.util.HashMap</code> object which maps <code>String</code> property names to
{@link EntityProperty} objects containing typed data
values to deserialize into the instance parameter object.
@param opContext
An {@link OperationContext} object that represents the context for the current operation.

@throws IllegalArgumentException
if the table entity response received is invalid or improperly formatted.
@throws IllegalAccessException
if the table entity threw an exception during deserialization.
@throws InvocationTargetException
if a method invoked on the instance parameter threw an exception during deserialization.
Deserializes the table entity property map into the specified object instance using reflection . <p > This static method takes an object instance that represents a table entity type and uses reflection on its class type to find methods to deserialize the data from the property map into the instance . <p > Each property name and data type in the properties map is compared with the methods in the class type for a pair of getter and setter methods to use for serialization and deserialization . The class is scanned for methods with names that match the property name with get and set prepended or with the { @link StoreAs } annotation set with the property name . The methods must have return types or parameter data types that match the data type of the corresponding { @link EntityProperty } value . If such a pair is found the data is copied into the instance object by invoking the setter method on the instance . Properties that do not match a method pair by name and data type are not copied .