* method.
*
* @see speculoos.core.Mapper#map(java.lang.Object, java.util.Map)
*/
public Object map(Object input, Map param) throws MapperException {
TypeHelper th = TypeHelper.instance;
StringBuffer sb = new StringBuffer();
sb.append("(&");
BeanInfo info;
try {
info = Introspector.getBeanInfo(input.getClass());
} catch (IntrospectionException e) {
throw new MapperException(getName()
+ ": cannot access fields info from Introspector", e);
}
PropertyDescriptor[] props = info.getPropertyDescriptors();
for (int i = 0; i < props.length; i++) {
PropertyDescriptor p = props[i];
String n = (String) outputMap.get(p.getName());
if (n == null)
continue;
Object o = th.get(input, p.getName());
/* special handling for collections */
if (o != null)
if (o instanceof Collection) {
for (Iterator it = ((Collection) o).iterator(); it
.hasNext();)