@Deprecated
public BeanProperty property(final Class<?> cls, final String name) {
BeanProperty beanProperty = null;
final PropertyDescriptor descriptor = buildMap(cls).get(name);
if (descriptor == null) {
throw new MissingFieldException(cls.getName(), name);
}
if (descriptor.getReadMethod() != null && descriptor.getWriteMethod() != null) {
beanProperty = new BeanProperty(cls, descriptor.getName(), descriptor.getPropertyType());
}
return beanProperty;