for (PropertyDescriptor descriptor : PropertyUtils.getPropertyDescriptors(beanClass))
{
Method readMethod = descriptor.getReadMethod();
if (readMethod != null)
{
RemoteName beanField = readMethod.getAnnotation(RemoteName.class);
if (beanField != null && beanField.value() != null && !beanField.value().equals(""))
{
props.put(beanField.value(), readMethod);
}
else
{
props.put(descriptor.getName(), readMethod);
}