/**
  * Return a plugin registration or null if not found
  *
  * @param pluginConfigurationId the Id of the plugin configuration
  * @param dataType the type of the BizDock object
  * @param internalId the Id of the object
  * @return a boolean
  */
 public static PluginRegistration getPluginRegistration(
     Long pluginConfigurationId, DataType dataType, Long internalId) {
   return find.where()
       .eq("pluginConfiguration.id", pluginConfigurationId)
       .eq("dataType", dataType.getDataTypeClassName())
       .eq("internalId", internalId)
       .findUnique();
 }
 /**
  * Return true if a registration is found
  *
  * @param pluginConfigurationId the Id of the plugin configuration
  * @param dataType the type of the BizDock object
  * @param internalId the Id of the object
  * @return a boolean
  */
 public static boolean isRegistered(
     Long pluginConfigurationId, DataType dataType, Long internalId) {
   return find.where()
           .eq("pluginConfiguration.id", pluginConfigurationId)
           .eq("dataType", dataType.getDataTypeClassName())
           .eq("internalId", internalId)
           .findRowCount()
       == 1;
 }