private Serializable toIdentifier(Serializable id) {
   if (id instanceof Component) {
     HashMap<String, String> map = new HashMap<String, String>();
     Component cfc = (Component) id;
     ComponentScope scope = cfc.getComponentScope();
     railo.runtime.component.Property[] props = HibernateUtil.getIDProperties(cfc, true, true);
     String name, value;
     for (int i = 0; i < props.length; i++) {
       name = props[i].getName();
       value = CommonUtil.toString(scope.get(CommonUtil.createKey(name), null), null);
       map.put(name, value);
     }
     return map;
   }
   return id;
 }