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