public static Integer getIdFromWebKey(String webKey) {
   if (webKey == null) return null;
   return AcGlobalDevicePk.createWebKey(webKey).getId();
 }
 public static String getWebKey(Integer id) {
   return AcGlobalDevicePk.createPk(id).getWebKey();
 }