Object underlying = obj.getUnderlying();
// The underlying is expected to be a map
if (!(underlying instanceof Map))
{
throw new PropertyAccessException("Mismatched property getter to event bean type, " +
"the underlying data object is not of type java.lang.Map");
}
Map<String, Object> map = (Map<String, Object>) underlying;
return getMap(map);