@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public Map<Path<?>, Object> createMap(RelationalPath<?> entity, Object bean) {
Map<Path<?>, Object> values = new HashMap<Path<?>, Object>();
Map<String, Object> map = new BeanMap(bean);
Map<String, Path<?>> columns = getColumns(entity);
for (Map.Entry entry : map.entrySet()) {
String property = entry.getKey().toString();
if (!property.equals("class") && columns.containsKey(property)) {
Path path = columns.get(property);
if (entry.getValue() != null) {
values.put(path, entry.getValue());